100% found this document useful (8 votes)
27 views

Data Structures and Applications: A Simple and Systematic Approach 1st edition - eBook PDF download

The document discusses data structures, their definitions, classifications, and operations, emphasizing the distinction between data and information. It introduces basic terminology, such as entities and attributes, and explains how data is represented in computers using binary systems. Additionally, it covers primitive and non-primitive data structures, providing examples and definitions relevant to programming languages like C.

Uploaded by

naffuluto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (8 votes)
27 views

Data Structures and Applications: A Simple and Systematic Approach 1st edition - eBook PDF download

The document discusses data structures, their definitions, classifications, and operations, emphasizing the distinction between data and information. It introduces basic terminology, such as entities and attributes, and explains how data is represented in computers using binary systems. Additionally, it covers primitive and non-primitive data structures, providing examples and definitions relevant to programming languages like C.

Uploaded by

naffuluto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 63

Data Structures and Applications: A Simple and

Systematic Approach 1st edition - eBook PDF pdf


download

https://ebooksecure.com/download/data-structures-and-
applications-a-simple-and-systematic-approach-ebook-pdf/

Download more ebook from https://ebooksecure.com


We believe these products will be a great fit for you. Click
the link to download now, or visit ebooksecure.com
to discover even more!

Evaluation: A Systematic Approach 7th Edition (eBook


PDF)

http://ebooksecure.com/product/evaluation-a-systematic-
approach-7th-edition-ebook-pdf/

(eBook PDF) Evaluation: A Systematic Approach 8th


Edition

http://ebooksecure.com/product/ebook-pdf-evaluation-a-systematic-
approach-8th-edition/

Structural Mechanics and Design of Metal Pipes: A


Systematic Approach for Onshore and Offshore Pipelines
1st Edition Spyros A. A. Karamanos - eBook PDF

https://ebooksecure.com/download/structural-mechanics-and-design-
of-metal-pipes-a-systematic-approach-for-onshore-and-offshore-
pipelines-ebook-pdf/

Data Structures - eBook PDF

https://ebooksecure.com/download/data-structures-ebook-pdf/
Data Fusion Methodology and Applications 1st Edition -
eBook PDF

https://ebooksecure.com/download/data-fusion-methodology-and-
applications-ebook-pdf/

(eBook PDF) Auditing Assurance Services A Systematic


Approach 10th

http://ebooksecure.com/product/ebook-pdf-auditing-assurance-
services-a-systematic-approach-10th/

(eBook PDF) Data Structures and Abstractions with Java


4th Edition

http://ebooksecure.com/product/ebook-pdf-data-structures-and-
abstractions-with-java-4th-edition/

Data Structures and Abstractions with Java 5th Edition


(eBook PDF)

http://ebooksecure.com/product/data-structures-and-abstractions-
with-java-5th-edition-ebook-pdf/

(eBook PDF) Auditing & Assurance Services A Systematic


Approach 11th Edition

http://ebooksecure.com/product/ebook-pdf-auditing-assurance-
services-a-systematic-approach-11th-edition/
Chapter 1: Introduction to Data Structures
What are we studying in this chapter?
 Introduction to data structures
 Classification of data structures: Primitive and non-primitive data structures
 Data structure operations
 Inserting, deleting
 Traversing, searching, sorting and merging

1.1 Introduction
In this chapter, let us discuss about the definition of data structures and see how the
data structures are classified. Basic terminology and concepts are defined along with
examples. The way the data is represented, organized, managed and structured is
crucial part of the data structures. The data to be manipulated can be used
individually or in a group under one common name and data can be of different types.

1.2 Basic terminology

First, let us see “What is data? What is information?”


Definition: The word data is the plural of datum. Data is a representation of facts or
concepts in an organized manner. The data may be stored, communicated, interpreted,
or processed. In short, we can say that data is a piece of information or simply set of
values and data as such may not convey any meaning.
For example, numbers, names, marks etc are the data. Consider the two data
items “Rama” and 10. The data “Rama” and 10 does not convey any meaning to the
reader.
Definition: Information is defined as a collection of data from which conclusions may
be drawn. So, information is subset of data which when interpreted conveys meaning
so that the people can understand. Hence, Information can be considered as a message
that is received and understood.
Ex 1: The output of the computer may be “Rama scored 10 marks”. This sentence is
an information. Because, it conveys meaning to the reader.
Ex 2: The instructions given to a person or commands issued to the computer are
considered as information.
1.2  Introduction to data structures and arrays
Now, let us see “What are the differences between data and information?”
Data Information
1. Data is collection of facts and figures 1. Information is the result of
(may be numbers). Facts are the processing the data. So, information
things done or things existing. is collection of data from which we
can draw conclusions.
2. Data do not convey any meaning 2. Information conveys meaning
3. Computers work with data 3. Computers do not work with
information
4. Data is unstructured, lacks context 4. When data is correctly organized,
and may not be relevant to the processed, filtered and presented
recipient. with context, it can become
information because it then has
meaning to the recipient
5. Data is the representation of 5. Information is the things that we
information. So, data representation know. So, even though data
may change representation changes, information
do not change

Note: Let us take an example relating to the last difference. Consider the statement
“My daughter is seven years old”. I can represent may daughter’s age as “seven in
words” or “7 in figures” or “VII in roman” or “111 in binary” or “1111111 in unary”
and so on. All these representations we call as data. Even though representation
changes, my daughter’s age has not changed. So, we say that information does not
change and data representation may change.

Note: Even though normally we use data and information interchangeably, they are
totally different and they are not synonyms.

Now, let us see “How computers represent data?”

The data are represented by the state of electronic switches. A switch with ON state
represents 1 and a switch with OFF state represents 0 (zero). Thus, all digital
computers use binary number system to represent the data. So, the data that we input
to the computer is converted into 0’s and 1’s. The letters, digits, punctuation marks,
sound and even pictures are represented using 1’s and 0’s. Thus, computers represent
data using binary digits 0 and 1 i.e., in binary number system.
 Systematic Approach to Data Structures using C - 1.3
For example, consider the string “ABC01” that we type from the keyboard. This data
can be represented in the computer as shown below.

Characters typed: A B C 0 1

ASCII values 41 42 43 30 31
(Binary values) 0100 0001 0100 0010 0100 0011 0011 0000 0011 0001

Note: In general, any data whether numerical or non-numerical is represented


using 1’s and 0’s.

All the quantities are measured in some units. For example, length may be measured
in meters or feet. On similar lines, to measure computer memory, we require units.
Now, let us see “How does the data represented using 1’s and 0’s can be grouped or
measured?” The data represented can be grouped or measured using following units:

Bit = 0 or 1
Nibble = 4 bits
Byte = 8 bits
Units of data
Kilobyte = 1024 bytes
Megabyte = 1024 Kilobytes
Gigabyte = 1024 Megabytes
Terabyte = 1024 Gigabytes

Now, let us see “What is an entity and what is an attribute?”


Definition: An entity can be defined as a person, place, thing or concept about which
data can be collected and stored. An entity is made up of a number of attributes which
represent that entity. An attribute is the one which describes the facts, details or
characteristics of an entity.

For example, if we collect name, usn, phone number, branch of engineering of a


particular student, then student is treated as an entity whereas name, usn, phone
number, branch are the attributes. The entity student and its attributes are pictorially
represented as shown below:
1.4  Introduction to data structures and arrays

attributes
entity
student Name Usn Phone_no branch
MONALIKA 101 9900170827 CSE

Attribute values

Now, let us see “What is an entity set?”


Definition: A collection of entities with similar attributes is an entity set. For
example, all the students in a college represent entity set. The entity set of students
can be pictorially represented as shown below:

Name Usn Phone_no branch


Entity set
MONALIKA 101 9900170827 CSE
KRISHNA 102 999999999 MECH
NARENDRA 103 9845070827 CIVIL
MITHIL 104 9844010200 ISE
PADMA 105 9844012222 EC

Now, let us see “In what way the attributes, entities and entity sets are related to
fields, records and files?” The way the data are organized into the hierarchy of fields,
records and files reflect the relationship between attributes, entities and entity sets.
Now, let us see “What is a field? What is a record? What is a file”
Definition: A field is a single elementary unit of information representing an attribute
of an entity. A record is a collection of field values of a given entity. A file is a
collection of records of the entities in a given entity set.

1.3 Data Structures


In this section, we shall “Define data structures?”
Definition: The study of how the data is collected and stored in the memory, how
efficiently the data is organized in the memory, how efficiently the data can be
retrieved and manipulated, and the possible ways in which different data items are
logically related is called data structures. The data structures are mainly classified as
shown below:
 Systematic Approach to Data Structures using C - 1.5

Primitive data structures


Types of data structures
Non-primitive data structures
1.3.1 Primitive Data Structures
Now, let us see “What are primitive data structures?”

Definition: The data structures that can be manipulated directly by machine


instructions are called primitive data structures. Thus, the primitive data structures
are fundamental data types that are supported by a programming language. The
primitive data structures are also called simple data structures.
For example, in C language, the different primitive data structures are defined
using the data types such as int, float, char, double and pointers.

Integers: An integer is a whole number without any decimal point or a fraction part.
No extra characters are allowed other than ‘+’ and ‘–‘ sign. If ‘+’ and ‘–‘ are present,
they should precede the number. The integers are normally represented in binary or
hexadecimal. All negative numbers are represented using 2’s complement. Based on
the sign, the integers are classified into:
 Unsigned integer
 Signed integer

Floating point number: The floating point constants are base 10 numbers with
fraction part such as 10.5. All negative numbers should have a prefix ‘–‘. A positive
number can have an optional ‘+’ sign. No other extra characters are allowed. The
floating point constants can be represented using two forms as shown below:
Fractional form
Floating point
notations Scientific notation
(Exponent notation)
Fractional form: A floating point number represented using fractional form has an
integer part followed by a dot and a fractional part. We can omit the digits before the
decimal point or after the decimal point. For example, 0.5, -0.99, -.6, -9., +.9 etc
are all valid floating point numbers.

Exponent form (Scientific notation): The floating point number represented using
scientific notation (also called exponential notation) has three parts namely:
mantissa e/E exponent.
1.6  Introduction to data structures and arrays
Ex1: 9.86 E 3 imply 9.86x103
Ex2: 9.86 e -3 imply 9.86x10-3
where
 The mantissa can be an integer or a floating point number represented using
fractional notation.
 The letter e or E should follow mantissa.
 The exponent should follow e or E. The exponent has to be an integer with
optional ‘+’ or ‘–‘ sign.

For example,
6.698274e2 means 6.698274 x 102
-0.36e-54 means -0.36 x 10-54

Character: A character data is a primitive data structure. A wide variety of character


sets (also called alphabets) are handled by computers. The two widely used character
sets are:
 ASCII (American Standard Code for Information Interchange)
 EBCDIC(Extended Binary Coded Decimal Interchange Code)
Note: ASCII (pronounced as as-key) code is a 7-bit code to represent various
characters such as letters, digits, punctuation marks and other symbols. ASCII stands
for American Standard Code for Information Interchange. The ASCII Table is shown
below.
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI
1 DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
2 SP ! " # $ % & ' ( ) * + , - . /
3 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
4 @ A B C D E F G H I J K L M N O
5 P Q R S T U V W X Y Z [ \ ] ^ _
6 ` a b c d e f g h i j k l m n o
7 p q r s t u v w x y z { | } ~ DEL

Observe from the table that character ‘A’ has an ASCII value 41, the character ‘B’
has an ASCII value 42 and character ‘C’ has an ASCII value 43. So, if we type the
text “ABC” from the keyboard, to the computer, it appears as shown below:
A B C (Characters)

41 42 43 (ASCII values)
0100 0001 0100 0010 0100 0011 (Binary values )
 Systematic Approach to Data Structures using C - 1.7
Pointer: A pointer is a special variable which contains address of a memory location.
Using this pointer, the data can be accessed.
For example, assume that a program contains four occurrences of a constant 3.1459.
During the compilation process, four copies of 3.1459 can be created as shown below:

3.1459 3.1459 3.1459 3.1459


a b c d
However, it is more efficient to use one copy of 3.1459 and three pointers referencing
a single copy, since less space is required for a pointer when compared to floating
point number. This can be represented pictorially as shown below:

c 3.1459 a

The variables b, c and d are called pointers since they contain address of variable a.

1.3.2 Non-primitive Data Structures


Now, let us see “What are non-primitive data structures? What are the different types
of non-primitive data structures?”
Definition: The data structures that cannot be manipulated directly by machine
instructions are called non-primitive data structures. Thus, the non-primitive data
structures are created or constructed using primitive data structures. The non-
primitive data structures are also called compound data structures.

For example, arrays, structures, stacks, queues, linked lists, trees, graphs, files
etc., are some of the non- primitive data structures.
Now, let us see “What are the different types of non-primitive data structures?” The
non-primitive data structures are classified as shown below:

Linear data structures Ex: Arrays, stacks, queues, linked lists

Non-linear data structures Ex: Trees, graphs, files etc.


1.8  Introduction to data structures and arrays
Now, let us see “What are linear data structures?”
Definition: The data structure where its values or elements are stored in a sequential
or linear order is called linear data structure. The elements can be accessed
sequentially one after the other in a linear order and hence the name. The linear
relationship between the elements is maintained:
 by means of sequential memory locations as in arrays: Here, one or more elements
are stored one after the other sequentially.
 by means of links as in linked list: Here, each element is stored in a node. One or
more nodes are logically adjacent and the logical adjacency is maintained using
links. In linked lists, even though the nodes are not physically adjacent, they seem
to be adjacent logically because of links. The logical adjacency is maintained
using pointers.
For example, arrays, stacks, queues, linked lists etc., are all linear data structures.

Now, let us see “What are non-linear data structures?”

Definition: The data structure where its values or elements are not stored in a
sequential or linear order is called non-linear data structures. Unlike linear data
structures, here, the logical adjacency between the elements is not maintained and
hence elements cannot be accessed if we go in sequential order. In non-linear data
structures, a data item (or an element) could be attached to several other data items.

For example, graphs, trees, files are all non-linear data structures.
Now, let us “Explain non-linear data structures?” All the non-linear data structures
such as arrays, stacks, queues, linked lists, graphs, trees and files are discussed below:
 Arrays: Definition: An array is a special and very powerful data structure in C
language. An array is a collection of similar data items. All elements of the array
share a common name. Each element in the array can be accessed by the subscript
(or index). Array is used to store, process and print large amount of data using a
single variable.

Ex 1: Set of integers, set of characters, set of students, set of pens etc. are
examples of various arrays.

Ex 2: An array of 5 integers is pictorially represented as shown below:

10 15 20 25 30
A[0] A[1] A[2] A[3] A[4]
 Systematic Approach to Data Structures using C - 1.9
Ex 3: An array of 5 characters is pictorially represented as shown below:

‘A’ ‘B’ ‘C’ ‘D’ ‘E’


A[0] A[1] A[2] A[3] A[4]

 Stack: A stack is a special type of data structure (linear data structure) where
elements are inserted from one end and elements are deleted from the same end.
Using this approach, the Last element Inserted is the First element to be deleted
Out, and hence, stack is also called Last In First Out (LIFO) data structure.
The stack s={a0, a1, a2,……an-1) is pictorially represented as shown below:
Insert Delete The elements are inserted into the
stack in the order a0, a1, a2,……an-1.
That is, we insert a0 first, a1 next and
so on. The item an-1 is inserted at the
an-1 Top of stack end. Since, it is on top of the stack, it
is the first item to be delted. The
various operations performed on
a2 stack are:
 Insert: An element is inserted
a1
from top end. Insertion operation
a0 Bottom of stack is called push operation
 Delete: An element is deleted from top end only. Deletion operation is called pop
operation.
 Overflow: Check whether the stack is full or not.
 Underflow: Check whether the stack is empty or not.

 Queue: A queue is a special type of data structure (linear data structure) where
elements are inserted from one end and elements are deleted from the other end.
The end at which new elements are added is called the rear and the end from
which elements are deleted is called the front. Using this approach, the First
element Inserted is the First element to be deleted Out, and hence, queue is also
called First In First Out (FIFO) data structure.
For example, consider the queue shown below having the elements 10, 50 and 20:
q
10 50 20
0 1 2 3 4
front rear
 The items are inserted into queue in the order 10, 50 and 20. The variable q is
used as an array to hold these elements
1.10  Introduction to data structures and arrays
 Item 10 is the first element inserted. So, the variable front is used as index to
the first element
 Item 20 is the last element inserted. So, the variable rear is used as index to
the last element
 Linked lists: A linked list is a data structure which is collection of zero or more
nodes where each node is connected to the next node. If each node in the list has
only one link, it is called singly linked list. If it has two links one containing the
address of the next node and other link containing the address of the previous
node it is called doubly linked list. Each node in the singly list has two fields
namely:
 info – This field is used to store the data or information to be manipulated
 link – This field contains address of the next node.

The pictorial representation of a singly linked list where each node is connected to
the next node is shown below:

first

20 30 10 60 \0

The above list consists of four nodes with info fields containing the data items 20,
30, 10 and 60.
 Graphs: A graph is a non-linear data structure which is a collection of vertices
called nodes and the edges that connect these vertices. Formally, a graph G is
defined as a pair of two sets V and E denoted by
G = (V, E)
where V is set of vertices and E is set of edges. For example, consider the graph
shown below:

1 6 Here, graph G = (V, E) where


0  V = {1, 2, 3, 4, 5, 6} is set of vertices

5
4  E = { (1, 6), (1, 2), (2, 3), (4, 3), (5, 3), (5, 6), (6, 4) }
2 0 is set of edges
Note:|V| = |{1, 2, 3, 4, 5, 6}| = 6 represent the number of
3 vertices in the graph.

 |E| = |{(1, 6), (1, 2), (2, 3), (4, 3), (5, 3), (5, 6), (6, 4) }| = 7 represent the
number of edges in the graph.
 Systematic Approach to Data Structures using C - 1.11
 Trees: A tree is a set of finite set of one or more nodes that shows parent-child
relation such that:
 There is a special node called the root node
 The remaining nodes are partitioned into disjoint subsets T1, T2, ……Tn, n ≥ 0
where T1, T2, T3 ……Tn which are all children of root node are themselves
trees called subtrees.
Ex1 : Consider the following tree. Let us identify the root node and various
subtrees:
 The tree has 8 nodes : A, B, C, D, E,
root A
F, G and H.
subtrees  The node A is the root of the tree
 We normally draw the trees with root
B C D at the top
 The node B, C and D are the children
E F G H of node A and hence there are 3
subtrees identified by B, C and D
 The node A is the parent of B, C and D whereas D is the parent of G and H

 Binary tree: A binary tree is a tree which is collection of zero or more nodes and
finite set of directed lines called branches that connect the nodes. A tree can be
empty or partitioned into three subgroups namely root, left subtree and right
subtree.
 Root – If tree is not empty, the A
first node is called root node.
 left subtree – It is a tree which is
connected to the left of root. B D
Since this tree comes under root,
it is called left subtree.
 right subtree – It is a tree which C E F I
is connected to the right of root.
Since this tree comes under the H J
root, it is called right subtree.

1.4 Data structure operations


In this section, let us see “What are the operations performed on various data
structures?” The operations performed on various data structures are:
 Creating: The process of repatedly adding various data items into the list is called
creating a list. For example, we can create a student records consisting of names,
1.12  Introduction to data structures and arrays
marks, address, phone number etc., by repeatedly adding or inserting data items
into the list.
 Inserting: The process of adding a data item into the list is called inserting. For
example, a student record consisting of name, marks and address can be added
whenever a student joins a course. It is called inserting student record into the list.
 Deleting: The process of removing a data item from a list is called deleting. For
example, removing a student record from the list whenever the student leaves the
course in the middle.
 Searching: The process of informing whether a particular item is present in a list
or it is not present in a list is called searching. We can also find a set of elements
based on some criteria. For example, display student names who have passed in
all subjects or who have scored more than 90%.
 Sorting: The process of arranging various data items either in ascending order or
descending order is called sorting. For example, in a student record consisting of
names, marks, phone number etc., we can arrange student records based on
alphabetical order of names or based on ascending order of marks etc.
 Merging: Given two sorted lists we can combine those two lists into a single
sorted list. This process is called merging. For example, two sorted arrays can be
combined into a single sorted array. This process is called simple merge.
 Traversing: The process of accessing each data item exactly once so that it can be
processed and manipulated is called traversal. For example, to print all array
elements, to display all student names in a class, to display each item in a list etc.

Each of the operations can be performed one after the other. For example, given an
item, we may have to traverse the list and during this process we can search for the
item in the list. If the item is present in the list, we may delete that item and insert
another item in that place. Then we may have to sort the resulting list and display the
sorted list.

Exercises
1) What is data? What is information?
2) What are the differences between data and information?
3) Define the terms: entity, attribute, entity set, field, record, file
4) Define data structures and types of data structures
5) What are primitive data structures? Explain
6) What are non-primitive data structures? Explain
7) Explain the different types of non-primitive data structures
8) What are the different types of number systems that are commonly used?
9) What are linear data structures? What are non-linear data structures? Explain
10) What are the operations performed on various data structures?
Chapter 2: Arrays
What are we studying in this chapter?
 Arrays: Definition and representation of linear arrays in memory
 Dynamically allocated arrays (Discussed in chapter 3)
 Array operations
 Traversing, Inserting and deleting
 Searching and sorting
 Multi-dimensional arrays
 Application of arrays:
 Polynomials (discussed in structures and unions – chapter 5)
 sparse matrices (discussed in structures and unions – chapter 5)

2.1 Introduction
In this section, let us see array concepts in detail. First, let us see “What is an array?”

Definition: An array is a special and very powerful data structure in C language. An


array is a collection of similar data items. All elements of the array share a common
name. Each element in the array can be accessed by the subscript (or index). Array is
used to store, process and print large amount of data using a single variable.

Ex 1: Set of integers, set of characters, set of students, set of pens etc. are examples of
various arrays.

Ex 2: Marks of all students in a class is an array of marks

The pictorial representation of an array of 5 integers, an array of 5 floating point


numbers and an array of 5 characters is shown below:

A[0] 10 B[0] 5.5 C[0] ‘A’


A[1] 20 B[1] 6.5 C[1] ‘B’
A[2] 30 B[2] 7.5 C[2] ‘C’
A[3] 40 B[3] 8.5 C[3] ‘D’
A[4] 50 B[4] 9.5 C[4] ‘E’
Array of 5 Array of 5 Array of 5
integers floats characters
2.2  Arrays
Now, let us see “What is a single-dimensional array?” A single-dimensional array
(also called one-dimensional array) is a linear list consisting of related data items of
same type. In memory, all the data items are stored in contiguous memory locations
one after the other. For example, a single dimensional array consisting of 5 integer
elements is shown below:

10 15 20 25 30
A[0] A[1] A[2] A[3] A[4]

Now, the question is “How to access these elements?” Since an array is identified by
a common name, any element in the array can be accessed by specifying the subscript
(or an index). For example,
 0th item 10 can be accessed by specifying A[0]
 1st item 20 can be accessed by specifying A[1]
 2nd item 30 can be accessed by specifying A[2]
 3rd item 40 can be accessed by specifying A[3]
 4th item 50 can be accessed by specifying A[4]
Now, let us see “How to declare and define a single dimensional array?” As we
declare and define variables before they are used in a program, an array also must be
declared and defined before it is used. The declaration and definition informs the
compiler about the:
 Type of each element of the array
 Name of the array
 Number of elements (i.e., size of the array)
The compiler uses this size to reserve the appropriate number of memory locations so
that data can be stored, accessed and manipulated when the program is executed. A
single dimensional array can be declared and defined using the following syntax:
data type such as int, float, char etc.
name of the array
expression must be evaluated to integer
type array_name [ int_expression ]; // semicolon is must at the end

Ex 1: int marks [5]; /* marks is an array of 5 integers */


5 memory locations
marks [0] [1] [2] [3] [4] with 2 bytes each.
 Systematic Approach to Data Structures using C - 2.3
2.2 Representation of Linear arrays in memory

Consider the following declaration:

C Syntax Pascal Syntax Pictorial representation


int a[5]; a : array[0..4] of integer
lower bound = 0 a[0] a[1] a[2] a[3] a[4]
upper bound = 4
Number of items = 5
= 4– 0 +1
= ub – lb + 1
Where ub is upper bound = 4
lb is lower bound = 0

not possible a : array[5..9] of integer


a[5] a[6] a[7] a[8] a[9]

Number of items = ub – lb + 1
=9 -5 +1
=5

Observe that in C language, array index always starts from 0 whereas in Pascal
language, array index can start from any integer (even negative indexing is possible in
Pascal). Now, let us see “How to obtain the location of a[j] in a single dimensional
array?” Let us take the following array declaration in Pascal language:
a : array[5..9] of integer; // Here, lower bound : LB = 5
// upper bound : UB = 9

The storage representation for the above single a[5] 3000


dimensional matrix assuming base address as 3000 can be a[6] 3002
written as shown in figure on the right hand side. a[7] 3004
a[8] 3006
The location of a[j] is given by:
a[9] 3008
Loc A[j] = base address + x ………………………….(1)

where
 x is the distance from base address upto jth row
2.4  Arrays
Calculation of x: Given the base address, the distance from base address can be
obtained as shown below:
Expressing in
terms of index
Address of each row

a[5] 3000 = 3000 + 0 = 3000 + 2 * 0 = 3000 + 2 * (5 – 5)


a[6] 3002 = 3000 + 2 = 3000 + 2 * 1 = 3000 + 2 * (6 – 5)
a[7] 3004 = 3000 + 4 = 3000 + 2 * 2 = 3000 + 2 * (7 – 5)
a[8] 3006 = 3000 + 6 = 3000 + 2 * 3 = 3000 + 2 * (8 – 5)
a[9] 3008 = 3000 + 8 = 3000 + 2 * 4 = 3000 + 2 * (9 – 5)
distance from base address 3000 = 2 * (j - 5)

So, distance from base address 3000 = 2 * ( j – 5 )


x = w * (j – lb )
where
 2 represent size of integer i.e., w in general
 5 represent the lower bound lb of the array
Substituting x in relation (1) we get:

Loc A[j] = base address(a) + w * (j – lb)


where
 w is the word length. w = 2 for integer values
w = 4 for floating point values
w = 8 for double values
 j is the index of the array
 lb is the lower bound of the array
Note: Observe the following points:

 Given any element a[j], its address can be calculated using the above relation and
the time taken to calculate location is same. So, the time taken to access a[5], a[6],
a[7], a[8] and a[9] remains same.
 The time taken to locate any element a[j] is independent of j. That is, irrespective
of j, the time taken to locate an array element a[j] remains same.
 This is very important property of linear arrays. (Linked lists discussed in chapters
8 and 9 do not have this property.
 Systematic Approach to Data Structures using C - 2.5
Example 2.1: A car manufacturing company uses an array car to record number of
cars sold each year starting from 1965 to 2015. Rather than beginning the array index
from 0 or 1, it is more useful to begin the array index from 1965 as shown below:
500 504 508 512 516 …….. 700

car[1965] car[1966] car[1967] car[1968] car[1969] ………. car[2015]

(a) Find the total number of years


(b) Suppose base address = 500, word length w = 4, find address of
car[1967], car[1969] and car[2015]
Solution:
(a) It is given that lower bound = lb = 1965
Upper bound = ub = 2015
So, total number of years = ub – lb + 1
= 2015 – 1965 + 1
= 51 years
(b) We know that Loc(a[j]) = Base(a) + w *(j – lb)
Loc(car[1967]) = 500 + 4 * (1967 – 1965] = 508
Loc(car[1969]) = 500 + 4 * (1969 – 1965] = 516
Loc(car[2015]) = 500 + 4 * (2015 – 1965] = 700

Example 2.2: Consider the linear arrays AAA(5:50), BBB(-5:10) and CCC(1:18)
(a) Find the number of elements in each array
(b) Suppose Base(AAA) = 300 and w = 4 words per memory cell for AAA. Find
the address of AAA[15], AAA[35] and AAA[55]
Solution:
(a) The number of elements in each array can be calculated using the following
relation:
Number of elements = ub – lb + 1
So, number of elements of array AAA = 50 – 5 + 1 = 46
Number of elements of array BBB = 10 – (-5) + 1 = 16
Number of elements of array CCC = 18 – 1 + 1 = 18
(b) It is given that Base(AAA) = 300, w = 4, lb = 5
We know that Loc(a[i]) = Base(a) + w *(i – lb)
Loc(AAA[15]) = 300 + 4 * (15 – 5) = 340
Loc(AAA[35]) = 300 + 4 * (35 – 5) = 420
Loc(AAA[55]) cannot be computed since 55 exceeds ub = 50
2.6  Arrays

2.3 Operations on arrays


Now, let us see “What are the various operations that can be performed on arrays?”

The various operations that can be performed on arrays are shown below:

Traversing
Inserting
Deleting
searching
sorting
2.3.1 Traversing

Now, let us see “What is traversing an array?” Visiting or accessing each item in the
array is called traversing the array. Here, each element is accessed in linear order
either from left to right or from right to left.

In this section, let us see “How to read the data from the keyboard and how to display
data items stored in the array?”

We can easily read, write or process the array items using appropriate programming
constructs such as for-loop, while-loop, do-while, if-statement, switch-statement etc.
Consider the declaration shown below:

int a[5];

Here, memory for 5 integers is reserved and each item in the array can be accessed by
specifying the index as shown below:
Using a[0] through a[4] we can access 5 integers.

Note: In general, Using a[0] through a[n-1] we can access n data items.

Once we know how to access each location in the memory, next question is “How to
store the data items in these locations which are read from the keyboard?”

This is achieved by reading n data items from the keyboard using scanf() function
which is available in C library as shown below:
 Systematic Approach to Data Structures using C - 2.7
scanf(“%d”, &a[0]);
scanf(“%d”, &a[1]);
scanf(“%d”, &a[2]);
………………
………………
scanf(“%d”,&a[n-1]);

In general, scanf(“%d”,&a[i]) where i = 0, 1, 2, 3,……n-1.

So, in C language, if we want to read n data items from the keyboard, the following
statement can be used:

for (i = 0; i <= n-1; i++) for (i = 0; i < n; i++)


{ {
scanf(“%d”, &a[i]); or scanf(“%d”, &a[i]);
} }

Similarly to display n data items stored in the array, replace scanf() by printf()
statement as shown below:
for (i = 0; i < n; i++)
{
printf(“%d”, a[i]);
}
Now, the function to create an array by reading n elements can be written as shown
below:
Example 2.3: Functions to read n items into an array

void create_array(int a[], int n)


{
int i;
for (i = 0; i < n; i++) i=0 1 2 3 4
{ a[0] a[1] a[2] a[3] a[4]
scanf(“%d”, &a[i]); 10 20 30 40 50
}
}
Now, the function to display n elements of the array can be written as shown below:
2.8  Arrays
Example 2.4: Functions to display n elements of array

void display_array(int a[], int n)


{
int i;

for (i = 0; i < n; i++) i=0 1 2 3 4


{ a[0] a[1] a[2] a[3] a[4]
printf(“%d ”, a[i]); 10 20 30 40 50
}
}

2.3.2 Inserting an item into an array (based on the position)

Now, let us see “How to insert an item into an unsorted array based on the position?”

Problem statement: Given an array a consisting of n elements, it is required to insert


an item at the specified position say pos.

Design: An item can be inserted into the array by considering various situations as
shown below:

Step 1: Elements are present (Invalid position): This case can be pictorially
represented as shown below:
Item = 60
a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 1
pos
Can you insert an item at 8th position onwards in the above array? No, we cannot
insert since, it is invalid position. That is, if pos is greater than 7 or if pos is less than
0, the position is invalid. The code for this case can be written as shown below:
if (pos > n || pos < 0) // When pos is greater than number of items
{
1 printf (“Invalid position\n”);
return n; // No insertion and return number of items
}
 Systematic Approach to Data Structures using C - 2.9
Step 2: Make room for the item to be inserted at the specified position: Consider
the following list with 7 elements and item 60 to be inserted at position 3.
Item = 60
a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 pos
We have to make room for the item to be inserted at position 3. This can be done by
moving all the elements 30, 80, 70 and 90 from positions 6, 5, 4, 3 into new positons
7, 6, 5, 4 respectively towards right by one position as shown below:

2
Item = 60
a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 pos
This is possible using the following assignment statements in the order specified:
a[7] = a[6];
a[6] = a[5];
a[5] = a[4];
a[4] = a[3]
In general, a[i+1] = a[i] for i = 6 down to 3
for i = n-1 down to pos
Now, the code for above activity can be written as shown below:
for (i = n-1; i >= pos; i--)
{
2 a[i+1] = a[i];
}
After executing, the above statement, the array contents can be pictorially represented
as shown below:
Item = 60
a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 pos
2.10  Arrays
Step 3: Insert item at the specified position: The code for this case can be written as
shown below:
3 a[pos] = item;
Now, the contents of array can be written as shown below:
Item = 60 3
a 50 40 20 60 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 pos

Thus, item 60 is inserted at position 3.

Step 4: Update number of elements in above array: The code for this case can be
written as shown below:
4 return n + 1;

Now, the complete function to insert an item at the specified position can be written
as shown below:
Example 2.5: Function to insert an item at the specified position in the array

int insert_at_pos (int item, int a[], int n, int pos)


{
int i;
if (pos > n || pos < 0) // When pos is greater than number of items
{
printf (“Invalid position\n”);
1
return n; // No insertion and return number of items
}
for (i = n-1; i >= pos; i--) /* Create space for item to insert at pos*/
{
2 a[i+1] = a[i];
}
3 a[pos] = item; /* Insert item at the specified position */

4 return n + 1; /* Update number of items in the array */


}
 Systematic Approach to Data Structures using C - 2.11
2.3.3 Deleting an item from an array (based on the position)
Now, let us see “How to delete an item from an unsorted array based on the
position?”

Problem statement: Given an array a consisting of n elements, it is required to delete


an item at the specified position say pos.

Design: An item can be deleted from the array by considering various situations as
shown below:

Step 1: Elements are present (Invalid position): This case can be pictorially
represented as shown below:
a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 1
pos
Can you delete an item from 7th position onwards in the above array? No, we cannot
delete since, it is invalid position. That is, if pos is greater than or equal to 7 or if pos
is less than 0, the position is invalid. The code for this case can be written as shown
below:
if (pos >= n || pos < 0 ) // When pos >= number of items
{
1 printf (“Invalid position\n”);
return n; // No deletion and return number of items
}
Step 2: Display the item to be deleted: Consider the following list with 7 elements
and let the position pos is 3.

a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 pos
The item at position pos can be accessed by writing a[pos] and it can be displayed
using the printf() function as as shown below:

2 printf(“Item deleted = %d\n”, a[pos]);


2.12  Arrays
Step 3: Remove the item from the array: Removing an element at the given
position can be illustrated using the following figure:
3
a 50 40 20 90 70 80 30
0 1 2 3 4 5 6 7 8 9
n=7 pos i
As shown in above figure, move all the elements from 4th position onwards towards
left by one position using the following statements:
a[3] = a[4];
3 a[4] = a[5];
a[5] = a[6];
In general, a[i - 1] = a[i] for i = 4 to 6
for i = pos+1 to n-1
Now, the code for above activity can be written as shown below:
for (i = pos + 1; i < n; i++)
{
3 a[i - 1] = a[i];
}
After executing the above statement, the array contents can be pictorially represented
as shown below:

a 50 40 20 70 80 30
0 1 2 3 4 5 6 7 8 9
n=6
Step 4: Update number of elements in above array: After deleting an item, the
number of items in the array should be decremented by 1. It can be done using the
following statement:
4 return n - 1;
Now, the complete function to delete an item from the specified position can be
written as shown below:
Example 2.6: Function to delete an item from the specified position in the array
 Systematic Approach to Data Structures using C - 2.13
int delete_at_pos (int a[], int n, int pos)
{
int i;
if (pos >= n || pos < 0) // When pos >= number of items
{
1 printf (“Invalid position\n”);
return n; // No deletion and return number of items
}
2 printf(“Item deleted = %d\n”, a[pos]);
for (i = pos + 1; i < n; i++) // Move elements towards left
{
3 a[i - 1] = a[i];
}
4 return n - 1; // Decrement the number of items in array
}

Example 2.7: Design, Develop and Implement a menu driven Program in C for the
following Array operations
1. Creating an Array of N Integer Elements
2. Display of Array Elements with Suitable Headings
3. Inserting an Element (ELEM) at a given valid Position (POS)
4. Deleting an Element at a given valid Position(POS)
5. Exit.
Support the program with functions for each of the above operations.

#include <stdio.h>
#include <process.h>

/* Insert: Example 2.3: function to create an array of N elements */


/* Insert: Example 2.4: function display an array of N elements */
/* Insert: Example 2.5: function to insert an item at a given position */
/* Insert: Example 2.6: function to delete an item at a given position */

void main()
{
int choice, a[10], n, item, pos;
2.14  Arrays
for (;;)
{
printf("1:Creat an array 2: Display \n");
printf("3:Insert at position 4: Delete at position \n”);
printf(“5:Exit\n”);
printf("Enter the choice\n");

scanf("%d", &choice);

switch(choice)
{
case 1:
printf("Enter the number of elements\n");
scanf("%d", &n);
printf(“Enter %d elements\n”, n);
create_array(a, n);
break;

case 2:
printf(“The contents of the array are\n”);
display_array(a, n);
break;

case 3:printf(“Enter the item to be inserted : “);


scanf(“%d”, &item);
printf(“Enter the position : “);
scanf(“%d”, &pos);
n = insert_at_pos (item, a, n, pos);
break;

case 4: printf(“Enter the position : “);


scanf(“%d”, &pos);
n = delete_at_pos (a, n, pos);
break;
default:
exit(0);
}
}
}
 Systematic Approach to Data Structures using C - 2.15
2.3.4 Sorting array elements
First, we shall see “What is sorting?”

Definition: More often programmers will be working with large amount of data and it
may be necessary to arrange them in ascending or descending order. This process of
arranging the given elements so that they are in ascending order or descending order
is called sorting. For example, consider the unsorted elements:

10, 50, 25, 20, 15

After sorting them in ascending order, we get the following list:

10, 15, 20, 25, 50

After sorting them in descending order, we get the following list:

50, 25, 20, 15, 10

Before writing the algorithm or the program let us know the answer for “What is the
concept used in bubble sort (Why it is also called sinking sort)?”

Design: Once we know what is sorting, the next question is “How to sort the elements
using bubble sort?”

Step 1: Identify parameters to function: Given an array a consisting of n elements we


have to sort them in ascending or descending order. So,
parameters are : int a[], int n

Step 2: Return type: Our intention is only to sort the numbers. Hence, we are not
returning any value. So,

return type : void

Step 3: Designing body of the function: This is the simplest and easiest sorting
technique. In this technique, the two successive items A[i] and A[i+1] are exchanged
whenever A[i] = A[i+1]. For example, consider the elements shown below:

50, 40, 30, 20, 10

The elements can be sorted as shown below:


2.16  Arrays

1st Pass 2nd Pass 3rd Pass 4th Pass

A[0] = 50 40 40 40 40 30 30 30 20 20 10
A[1] = 40 50 30 30 30 40 20 20 30 10 20
A[2] = 30 30 50 20 20 20 40 10 10 30 30
A[3] = 20 20 20 50 10 10 10 40 40 40 40
A[4] = 10 10 10 10 50 50 50 50 50 50 50
Given 50 sinks to 40 sinks to 30 sinks to 20 sinks
array bottom bottom bottom to bottom
after pass 1 after pass 2 after pass 3

 In the first pass 50 is compared with 40 and they are exchanged since 50 is greater
than 40.
 Next 50 is compared with 30 and they are exchanged since 50 is greater than 30.
If we proceed in the same manner, at the end of the first pass the largest item
occupies the last position.
 On each successive pass, the items with the next largest value will be moved to
the bottom and thus elements are arranged in ascending order.

Note: Observe that after each pass, the larger values sinks to the bottom of the array
and hence it is called sinking sort. The following figure below shows the output of
each pass.

Original Out put of each pass


st
Array 1 2nd 3rd 4th

A[0] = 50 40 30 20 10
Note: Observe that at the end of each
A[1] = 40 30 20 10 20
pass smaller values gradually “bubble”
A[2] = 30 20 10 30 30 their way upward to the top (like air
bubbles moving to surface of water)
A[3] = 20 10 40 40 40
and hence called bubble sort.
A[4] = 10 50 50 50 50

Now we concentrate on the designing aspects of this sorting technique. The


comparisons that are performed in each pass are shown below:
 Systematic Approach to Data Structures using C - 2.17

Passes  Pass-1 Pass-2 Pass 3 Pass 4

0–1 0–1 0–1 0–1


1–2 1–2 1–2
Comparing 2–3 2–3
3–4

i=0 to 3 i=0 to 2 i=0 to 1 i=0 to 0


5-2 5-3 5-4 5-5
5-(1+1) 5-(2+1) 5-(3+1) 5-(4+1)
n- (j+1) n –(j+1) n-(j+1) n-(j+1)

 In general we can say i = 0 to n-(j+1) or i = 0 to n – j – 1.


 Here, j = 1 to 4 represent pass number. In general j = 1 to n-1.
 So, the partial code can be written as:
for j = 1 to n-1
for i = 0 to n-j-1
if ( A[i] > A[i +1] )
exchange ( A[i] , A[i+1] )
end if
end if
end if
Now, the complete bubble sort algorithm can be written as shown below:

Example 2.8: Algorithm for bubble sort

Algorithm BubbleSort(a[], n)
for j  1 to n – 1 do // Perform n-1 passes
for i  0 to n-j-1do // To compare items in each pass
if ( a[i] > a[i+1] ) // If out of order exchange
temp  a[i]
a[i]  a[i+1]
a[i+1] temp
end if
end for
end for
2.18  Arrays

Note: All variables other than parameters should be declared as local variables i.e.,
the variables i, j and temp should be declared as int data type in function.

The C equivalent for the above algorithm can be written as shown below:

Example 2.9: C function to sort the array elements in ascending order

void bubble_sort ( int a[], int n )


{
int j; /* Represent pass number */
int i; /* To access elements in each pass */
int temp; /* Temporary variable used to exchange*/
for ( j = 1; j < n; j++) /* Number of passes required: n-1*/
{
for ( i = 0; i < n - j; i++) /* To access elements in each pass */
{
if ( a[i] >= a[i+1] ) /* Exchange if out of order */
{
temp = a[i];
a[i] = a[i+1];
a[i+1] = temp;
}
}
}
}
The C program that uses the above function to sort the elements is shown below:

Example 2.10: C program to read n numbers, sort them using bubble sort

#include <stdio.h>

/* Include: Example 2.9: bubble sort */

void main()
{
int a[20]; /* Array of integers to be sorted */
int n; /* Number of elements in array a and b */
int i; /* Index used to access elements in a and b */
Discovering Diverse Content Through
Random Scribd Documents
The Project Gutenberg eBook of Lehrbuch der
Physik zum Schulgebrauche.
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

Title: Lehrbuch der Physik zum Schulgebrauche.

Author: Wilhelm Winter

Release date: March 13, 2017 [eBook #54357]


Most recently updated: October 23, 2024

Language: German

Credits: Produced by Peter Becker, Ottokar Lang, Harry Lamé


and the
Online Distributed Proofreading Team at
http://www.pgdp.net

*** START OF THE PROJECT GUTENBERG EBOOK LEHRBUCH DER


PHYSIK ZUM SCHULGEBRAUCHE. ***
Anmerkungen zur Transkription
befinden sich am Ende dieses
Textes.
Lehrbuch der Physik
zum

S c h u l g e b r a u c h e.
Bearbeitet von

Wilhelm Winter,
K. Gymnasialprofessor in München.

Mit 370 eingedruckten Abbildungen.

Sechste Auflage.

München
Theodor Ackermann
Königlicher Hof-Buchhändler.
1905.

Druck von C. Brügel u. Sohn in Ansbach.


Vorrede.
Die Entwicklung der bayerischen Realschulen, wie sie sich auf
der sprachlich-historischen und mathematisch-
naturwissenschaftlichen Grundlage vollzogen hat, legte mir den
Entschluß nahe, für den Unterricht in der Physik ein Lehrbuch
zusammenzustellen, welches gerade für solche realistische
Mittelschulen geeignet wäre. Sowohl die Erfolglosigkeit bei der
Auswahl eines passenden Buches unter den vorhandenen als auch
die Aufforderung befreundeter Fachgenossen veranlaßten mich
dann, meine mehrjährigen Erfahrungen im physikalischen
Unterrichte zur Herstellung dieses Buches zu benützen, das ich nun
der wohlwollenden Beurteilung meiner verehrten Herren
Fachgenossen übergebe. Bei Abfassung desselben leitete mich nur
der eine Gedanke, all das und nur das aufzunehmen, was in
Mittelschulen gelehrt werden kann und entweder zur allgemeinen
Bildung notwendig oder zur praktischen Verwertung fähig ist, und
die Darstellung stets so zu wählen, wie sie der jeweiligen
Fassungskraft der Schüler, sowie insbesondere ihrem Vorrat von
mathematischem Wissen entspricht. Man wird deshalb wohl auf der
ersten Stufe nur einfache Gedankenfolgen und etwas breite
Ausführung, auf der mittleren Stufe ein tieferes Eingehen in die
Einzelheiten der Vorgänge und Gesetze, wozu sich ja Elektrizität und
Akustik ganz vorzugsweise eignen, und auf der dritten Stufe eine
strenge Behandlung der Optik und Mechanik mit ausgiebiger
Benützung und Anwendung der mathematischen Kenntnisse finden.
Derselbe Wunsch nach Anpassung des Lehrstoffes an die
Fassungskraft der Schüler veranlaßte mich insbesondere, die
Mechanik in zwei Teile zu spalten und den einen Teil, soweit er mit
Hilfe einfacher Arithmetik behandelt werden kann, gleich auf der
ersten Stufe durchzunehmen, da er die Grundlehren über Kraft,
Arbeit und einfache Maschinen enthält, ohne welche in die Physik
nicht eingedrungen werden kann; der zweite Teil erfährt dann auf
der dritten Stufe eine eingehende, mathematische Behandlung.
Der Abschnitt über Akustik dürfte für gewöhnliche Mittelschulen
etwas zu reich sein; doch habe ich denselben deshalb so ausführlich
behandelt, um das Buch auch für Lehrerbildungsanstalten passend
zu machen, an denen ja die Akustik eine ganz besondere
Durchbildung erfahren muß.
Bei der Behandlung des Lehrstoffes dem Umfange nach habe
ich innerhalb der Schranken, welche durch die Fassungskraft der
Schüler gezogen sind, stets nur dasjenige aufzunehmen mich
bemüht, was zum Verständnis der Vorgänge und Gesetze notwendig
ist, und dies durch die einfachsten Experimente zu beweisen
gesucht; ein Hinausgehen über diesen engsten Rahmen durch
Anfügung weiterer Beispiele, Anwendung der erkannten Gesetze auf
ähnliche Vorgänge, Erklärung von weiteren Erscheinungen mittels
der vorhandenen Kenntnisse ist und bleibt der Tätigkeit des Lehrers
im Unterrichte vorbehalten. Doch glaubte ich weder Zeit noch Raum
sparen zu sollen, wenn es sich darum handelte, den physikalischen
Gesetzen in ihren Anwendungen für praktische Bedürfnisse zu folgen
und zu zeigen, wie die einfachen und leichtverständlichen
Eigenschaften und Kräfte in der mannigfaltigsten Weise benützt
werden für die Zwecke der Technik und Industrie, des Handels und
Gewerbes. Denn neben der einen Hauptaufgabe, die Naturgesetze
zu erkennen, die Beobachtungsgabe auszubilden, den Verstand an
der Erklärung komplizierter Erscheinungen zu schärfen und dadurch
eine allgemeine Geistesbildung zu vermitteln, hat der Unterricht in
der Physik gerade an den realistischen Mittelschulen noch die
besondere Aufgabe, den Schülern ein möglichst klares und
umfassendes Verständnis mitzugeben für all die tausendfältigen
Vorkommnisse, Erscheinungen und Verwendungen im technischen
Leben unserer Zeit, in das sie nach der Schule einzutreten berufen
sind.
Möge das Buch angesehen werden als das, was es sein soll, ein
Lehrbuch der Physik an realistischen Mittelschulen, und möge es als
solches wohlwollende Beurteilung und freundliche Aufnahme finden!

Kaiserslautern, im Mai 1886.

W. Winter,
Kgl. Reallehrer.
Vorrede zur sechsten Auflage.
Nachdem das Buch besonders in der vierten und fünften
Auflage einige Änderungen erlitten hatte, besonders um es den
neuen Lehrplänen anzupassen, die Figuren durch bessere zu
ersetzen und die Aufgaben zu vermehren, war ich bei der
vorliegenden Auflage bestrebt, es dem Umfang nach zu verringern.
Ich folgte dabei auch dem Rate befreundeter Fachgenossen und war
bemüht, in allem die Ausdrucksweise zu vereinfachen, die
Erscheinungen in möglichster Kürze zu beschreiben und die Gesetze
möglichst klar und leicht verständlich zu fassen. Doch bin ich dabei
nicht unter eine gewisse Grenze gegangen, da meiner Ansicht nach
der Schüler im Buche selbst noch eine Darstellung finden soll,
welche ihm über manches, was ihm im Unterricht nicht ganz klar
geworden ist, eine leicht faßliche Aufklärung gibt. Die Aufgaben
wurden vermehrt und den einzelnen Kapiteln angefügt, jedoch ohne
die bisherige Numerierung zu ändern.
Ich hege die Hoffnung, daß das Buch auch fernerhin
wohlwollende Beurteilung finden und zum Gedeihen des
physikalischen Unterrichtes beitragen wird.

München, Februar 1905.

Der Verfasser.
Inhalts-Übersicht.

Erster Abschnitt.
A l l g e m e i n e E i g e n s c h a f t e n . L e h r e v o n d e n K r ä f t e n.

Aufgabe der Physik. Undurchdringlichkeit, Zusammendrückbarkeit, Porosität,


Teilbarkeit, Molekül; Schwere, Trägheit, Kraft; Zusammensetzung und Zerlegung
der Kräfte; Hebel, Rolle, Wellrad; Arbeit; Schwerpunkt, Elastizität, Kohäsion,
Adhäsion.

Zweiter Abschnitt.
L e h r e v o n d e n f l ü s s i g e n K ö r p e r n.

Allgemeine Eigenschaften. Gleichmäßige Fortpflanzung des Druckes,


Bodendruck, Seitendruck, Auftrieb, Archimedisches Gesetz, spezifisches Gewicht.
Kommunizierende Röhren, Brunnen und Quellen; Kapillarität.

Dritter Abschnitt.
L e h r e v o n d e n l u f t f ö r m i g e n K ö r p e r n.

Allgemeine Eigenschaften. Luftdruck, Barometer. Ausdehnungsbestreben.


Luftpumpe. Zusammendrückbarkeit, Mariottesches Gesetz. Spezifisches Gewicht,
Luftballon. Kompressionspumpe. Pumpen, Spritzen, Heber.

Vierter Abschnitt.
W ä r m e.

Wärmezustand, Thermometer. Ausdehnung durch die Wärme. Erhöhung der


Expansivkraft der Luft durch die Wärme. Wärmeleitung; Wärmemenge,
Wärmequellen. Schmelzen; Sieden; Lehre von den Dämpfen. Dampfmaschine,
Gaskraftmaschine. Luftfeuchtigkeit. Mechanische Gastheorie.
Fünfter Abschnitt.
M a g n e t i s m u s.

Grundgesetze, Mitteilung, Stahlmagnete, Erdmagnetismus.

Sechster Abschnitt.
R e i b u n g s e l e k t r i z i t ä t.

Grundgesetze, Elektroskop, Influenz, Elektrophor; Verteilung auf einem Leiter;


Elektrisiermaschinen. Kondensation, Leydner Flasche; Wirkung der Entladung.
Atmosphärische Elektrizität, Gewitter, Blitz, Blitzableiter.

Siebenter Abschnitt.
G a l v a n i s c h e E l e k t r i z i t ä t.

Erregung. Elektromotorische Kraft, Zambonische Säule. Galvanischer Strom,


Elemente. Wirkung des Stromes auf die Magnetnadel, Galvanometer. Gefälle,
Leitungswiderstand; Stromstärke; Batterie. Galvanis Grundversuch, Voltas
Kontaktelektrizität. Wirkung zweier Stromteile aufeinander, Erdstrom, Solenoid,
Elektromagnet; elektrische Klingel, Haustelegraph; Telegraph, Morsescher
Schreibtelegraph, Nadel- und Zeigertelegraph, Leitung; elektrische Uhr. Chemische
Wirkung des Stromes; Elektrolyse von Wasser und von Salzen; elektrolytisches
Gesetz; Polarisation. Galvanoplastik und Galvanostegie.

Achter Abschnitt.
I n d u k t i o n s - E l e k t r i z i t ä t.

Fundamental-Versuche und -Gesetze. Induktionsapparate. Induktion auf


eigene Leitung. Induktion im magnetischen Feld, magnetelektrischer
Induktionsapparat. Dynamomaschine. Grammescher Ringinduktor. Wärmewirkung
des Stromes, Bogenlicht, Glühlicht; elektrodynamische Maschine,
Kraftübertragung. Sekundärelemente, Akkumulatoren. Telephon, Mikrophon;
Thermoelektrizität.

Neunter Abschnitt.
W e l l e n l e h r e u n d A k u s t i k.

Entstehung, Form, Bedeutung, Reflexion der Wellen; Entstehung des Schalles,


Form der Schallwellen; Geschwindigkeit, Stärke, Reflexion des Schalles. Ton,
Schwingungszahl, Schwingungsverhältnisse der Töne. Schwingende Saiten,
Obertöne. Schwingende Stäbe und Platten. Gedeckte und offene Pfeifen.
Mitschwingen, Resonatoren, Interferenz. Menschliche Sprache; Ohr.

Zehnter Abschnitt.
O p t i k.

Wesen des Lichtes. Durchsichtigkeit, Schatten. Geschwindigkeit des Lichtes.


Photometer. Reflexion. Planspiegel; sphärische Spiegel. Brechung des Lichtes.
Atmosphärische Strahlenbrechung. Grenzwinkel, Totale Reflexion. Prisma.
Sphärische Linsen. Auge. Lupe. Projektionsapparate. Fernrohr, Operngucker;
Mikroskop; Stereoskop. Zerstreuung des Lichtes, Spektrum. Achromatische Linsen;
Fraunhofersche Linien. Spektralanalyse. Farbenlehre. Phosphoreszenz,
Fluoreszenz. Wärmestrahlen, chemische Strahlen.

Elfter Abschnitt.
M e c h a n i k.

Hebel. Schwerpunkt. Räderwerk, Uhr. Wage. Schiefe Ebene. Keil, Schraube.


Fall; Wurf, gleichförmig beschleunigte Bewegung. Zentralbewegung; Pendel; Stoß;
lebendige Kraft. Mechanisches Äquivalent der Wärme; elektrische Energie.
Allgemeine Lehre von der Energie. Verwandlung, Erhaltung der Energie.

Zwölfter Abschnitt.
A n h a n g.

Interferenz der Wellen, des Lichtes. Beugung der Wellen, des Lichtes.
Polarisation. Doppelbrechung des Lichtes.
Die absoluten Maßeinheiten: die mechanischen, elektrostatischen,
elektromagnetischen, praktischen Einheiten.
Elektrische Wellen, drahtlose Telegraphie, Röntgenstrahlen.
Aufgaben.
Erster Abschnitt.
Allgemeine Eigenschaften der
Körper. Lehre von den Kräften.

1. Aufgabe der Physik.


Die Physik ist die Lehre von den Naturerscheinungen. Die
Vorgänge oder Erscheinungen werden zunächst genau
b e o b a c h t e t und b e s c h r i e b e n, und dann werden die
U r s a c h e n dieser Vorgänge erforscht. Ursachen, welche
Veränderungen im Zustande eines Körpers hervorbringen,
nennt man Kräfte, Naturkräfte. Die Physik untersucht, wie
mehrere Kräfte zusammenwirken, und sucht dann nach G e s e t z e n,
nach welchen diese Ursachen eine Wirkung hervorbringen.
Schließlich lehrt die Physik auch, wie die Kräfte n u t z b a r gemacht
werden zu den verschiedenen Arbeiten im gewöhnlichen Leben,
sowie in Gewerbe und Industrie.

Allgemeine Eigenschaften der Körper.


A l l g e m e i n e E i g e n s c h a f t e n sind solche, welche allen
Körpern zukommen. Manche Eigenschaften sind so wichtig, daß
ohne sie ein Körper nicht einmal gedacht werden kann; sie sind zum
Begriffe eines Körpers notwendig.
2. Undurchdringlichkeit oder Raumerfüllung.
Jeder Körper nimmt einen Raum ein und erfüllt ihn; dort,
wo ein Körper ist, kann nicht zugleich ein anderer sein.
Beispiele: Der Nagel, der ins Holz geschlagen wird, verdrängt
die Holzmasse. Wenn man zwei pulverförmige Körper vermischt, so
nimmt jeder seinen Raum ein; die Teilchen des einen Körpers
befinden sich neben denen des anderen Körpers. Auch beim
Auflösen von Zucker in Wasser dringen die Teilchen des Zuckers
zwischen die des Wassers und erfüllen also auch noch einen Raum.
Doch tritt hiebei meist eine Volumänderung (-Verminderung) ein.
Auch die L u f t ist raumerfüllend und schon deshalb als Körper
anzusehen. Wenn man ein Becherglas mit der Öffnung nach abwärts
ins Wasser taucht, so dringt das Wasser nicht ganz in die Höhlung
des Glases ein.
Da wir oft einen Körper seinen Platz verlassen sehen, ohne daß
ein anderer sichtbarer Körper seinen Platz einnimmt, so hat es für
uns nichts widersinniges, uns einen l e e r e n R a u m vorzustellen.
Weil jeder Körper seine
Stelle verlassen kann, so
schreiben wir dem Raum eine
Ausdehnung zu, und da jeder
Körper nach jeder Richtung sich
bewegen kann, so ist der Raum
allseitig ausgedehnt. Nehmen
wir aber drei beliebige
Richtungen als Hauptrichtungen,
z. B. die Richtung nach vorn OB,
nach der Seite OA und nach
Fig. 1. oben OC, so kann man von einer
beliebigen Stelle O des Raumes
zu einer beliebigen anderen Stelle Q gelangen, indem man
nacheinander in den drei Hauptrichtungen um passende Strecken
fortgeht. Um von O nach Q zu kommen (Fig. 1), geht man in der
Richtung OA um die Strecke OJ = x, dann in der Richtung OB um die
Strecke JK = y, dann in der Richtung OC um die Strecke KQ = z fort.
Deshalb sagt man, der Raum ist nach drei Hauptrichtungen
ausgedehnt. Wegen der allseitigen Ausdehnung des Raumes
können die drei Hauptrichtungen beliebig gewählt werden.
Da ein Körper einen begrenzten Raum erfüllt, so sagt man, auch
der Körper ist (innerhalb seiner Grenzen) allseitig ausgedehnt und
hat drei Hauptausdehnungen.

3. Zusammendrückbarkeit und
Ausdehnbarkeit.
Jeder Körper läßt sich durch Druck auf einen kleineren
Raum zusammenpressen und durch Zug auf einen größeren
Raum ausdehnen.
Wird eine Silberplatte durch sehr großen Druck zur Münze
geprägt, oder Eisen zur Platte gewalzt, so nimmt es einen kleineren
Raum ein als zuerst. Doch beträgt die Verkleinerung bei allen festen
Körpern nur sehr wenig. Ein stabförmiger Körper wird durch Zug
länger und auch sein Volumen wird dabei größer.

4. Die Porosität.
Kein Körper nimmt seinen Raum v o l l s t ä n d i g ein, sondern
jeder hat in seinem Innern kleine Löcher, Gänge und Höhlungen, die
mit einem anderen Stoffe ausgefüllt sind, meist mit Luft oder
Wasser. Diese Hohlräume sind die Poren, und die Eigenschaft heißt
Porosität. Sehr stark porös und g r o ß p o r i g sind: Schwamm,
Brot, Bimsstein, das Mark von Binsen.
Sehr porös aber k l e i n p o r i g sind Kreide, Gips, Mörtel, Ton,
Ziegelsteine, Sandsteine, manche Kalksteine, Holz, Zucker u. s. w.
Ihre Poren sind so fein, daß man sie mit freiem Auge nicht sehen
kann. Taucht man einen solchen Körper ins Wasser, so dringt es in
die Poren des Körpers ein und macht ihn auch im Innern feucht. Die
meisten dieser Körper sind dadurch porös geworden, daß bei ihrer
Bildung oder zu ihrer Herstellung Wasser verwendet wurde, und daß
beim Austrocknen an dessen Stelle Luft eintrat.
Tönerne Gefäße lassen die Flüssigkeit auch in ihr Inneres
eindringen und durchsickern; um das zu verhindern, glasiert man
sie, d. h. man überzieht sie mit einer Glasschichte, welche die Poren
verstopft. Ähnlichen Zweck hat das Auspichen der Fässer, das
Versiegeln der Weinflaschen, Zementieren der Ställe, Wasserbehälter
und Abtrittgruben, das Ölen und Firnissen hölzerner Gegenstände u.
s. w.
In porösen Wänden steigt das Wasser des Erdbodens empor
und hält das Haus feucht (Einlegen von Asphalt- oder Bleiplatten).
Feinporige Körper kleben an der Zunge, weil sie die Feuchtigkeit
aufsaugen. Poröse Gesteine verwittern leicht.
Holz, obwohl sehr porös, läßt das Wasser doch nur langsam
eindringen; denn die meisten Poren des Holzes bestehen nicht aus
Gängen, die das Holz durchsetzen, sondern aus abgeschlossenen
Hohlräumen (Zellen). Ebenso Kork, welcher sogar einen luft- und
wasserdichten Verschluß gibt.
Manche Stoffe zeigen sich unporös; man nennt sie dicht oder
kompakt. Solche sind Marmor, Basalt, Elfenbein, dann die Kristalle
und solche Körper, welche aus einem dichten Gefüge kleiner Kristalle
bestehen (kristallinische Gesteine), dann solche, welche aus ruhigem
Schmelzfluß in den festen Zustand übergegangen sind, wie die
Metalle, Glas, Pech, Schwefel, Kautschuk, Porzellan, Klinkersteine u.
s. w. Glas ist selbst bei hohem Drucke undurchlässig für Wasser und
Luft.
Wasser, jede Flüssigkeit und jede Luftart sind nicht porös in dem
Sinne wie die festen Körper.
Aufgaben:
a) Wodurch wird Brot porös? b) Durch welchen Versuch kann
man erkennen, daß das Holz Poren hat, die es der Länge nach
durchsetzen? c) Welche Papiersorten sind porös? d) Inwiefern kann
man Tuch porös nennen? e) Welche Gesteine aus der nächsten
Umgebung sind porös?
5. Teilbarkeit.
Jeder Körper ist teilbar, d. h. er läßt sich durch Anwendung einer
Kraft in k l e i n e r e S t ü c k e z e r t e i l e n. Bedarf es hiezu nur
geringer Kraft, so nennt man den Körper w e i c h, bedarf es großer
Kraft, so heißt der Körper h a r t. Auch der härteste Körper, der
Diamant, ist teilbar; denn er läßt sich nach gewissen Richtungen
spalten, und mittels seines eigenen Pulvers schleifen. Ein Körper ist
härter als ein zweiter, wenn man mit dem ersten Körper den zweiten
ritzen kann; so ist Diamant härter als Rubin, dann folgen der Härte
nach Stahl, Glas, Eisen, Kupfer u. s. w.
Manche Körper lassen sich ungemein fein zerteilen, besonders
die Farbstoffe. So genügt die geringe Menge Farbstoff, die in einer
Cochenillelaus enthalten ist, um ein ganzes Glas Wasser rot zu
färben, was nur durch äußerst feine Zerteilung des Karmins möglich
ist. Je feiner sich ein Farbstoff zerreiben läßt, desto besser d e c k t
er. Gut deckt Tusch, Berlinerblau, Zinnober, Schweinfurtergrün;
schlecht deckt Bleiweiß (Kremserweiß), Ocker und Veronesergrün.
Riechstoffe müssen sich wohl in ungemein kleine Teile zerlegen;
denn ein erbsengroßes Stück Moschus kann ein ganzes Jahr
hindurch die oft wechselnde Luft eines Zimmers mit seinem Geruche
erfüllen, ohne daß es an Größe merklich abnimmt. Der K i e s e l g u r,
ein feiner Sand der Lüneburger Heide, besteht aus den
Kieselpanzern einer einzelligen Pflanze, welche mikroskopisch klein
ist.
Aufgaben:
a) Nenne Körper, welche sich mit dem Fingernagel ritzen lassen!
b) Wie ordnen sich die Stoffe: Stahl, Glas, Marmor, Quarz und Gips
der Härte nach? c) Warum deckt Tusch besser als zerriebene Kohle?
d) Welche Organismen sind dir aus der Naturkunde als sehr klein
bekannt?
6. Zusammensetzung der Körper aus
Molekülen.
Trotz der weitgehenden Teilbarkeit der Stoffe nimmt man an,
daß die Stoffe aus sehr kleinen Teilchen zusammengesetzt sind, die
an sich u n t e i l b a r sind. Man hat sich also vorzustellen, daß jeder
Körper aus ungemein vielen, ungemein kleinen Teilchen besteht, die
durch kein Mittel in noch kleinere Teile zerlegt werden können; man
nennt ein solches Teilchen Molekül oder Massenteilchen. Ein
einzelnes Molekül ist auch bei der stärksten Vergrößerung nicht zu
sehen, und wir sind wohl nicht imstande, einen festen Körper durch
Zerreiben oder ein ähnliches mechanisches Mittel in seine Moleküle
zu zerlegen. Ein Stäubchen, das in der Luft schwebt, das kleinste
Lebewesen, das nur bei stärkster Vergrößerung eben noch
wahrgenommen wird, besteht doch noch aus sehr vielen Molekülen.
In der Luft sind eine Million Moleküle nebeneinander auf der Länge
eines Millimeters, also ca. 1 Trillion in einem Kubikmillimeter
enthalten. Die Chemie lehrt, daß jedes Molekül aus mehreren
gleichartigen oder verschiedenen Stoffteilchen besteht, daß es in
diese zerlegt und in vielen Fällen aus ihnen wieder zusammengesetzt
werden kann, daß die Stoffteilchen sich aber (bis jetzt) nicht weiter
zerlegen lassen. Die Stoffteilchen nennt man Atome (Atom = das
Unteilbare).
Aufgaben:
a) Wie viele Moleküle enthält 1 cbm Wasser, wenn dessen
Moleküle nach jeder Richtung je ein Zehntausendstel Millimeter groß
sind? b) Wenn man die Luft eine millionmal dünner macht, wie viele
Moleküle sind dann immer noch in 1 cbm? c) Wenn man Zucker in
Wasser auflöst, oder Wasser mit Weingeist vermischt, so tritt eine
Volumverminderung ein. Wie ist das möglich?
Man nimmt ferner an, daß auch bei festen und flüssigen Körpern die Moleküle
sich nicht berühren, sondern in Abständen nebeneinander liegen, welche ca. 10
mal größer sind als ihre Durchmesser. Die Entfernung zwischen den Mittelpunkten
benachbarter Moleküle beträgt bei gewöhnlichen festen oder flüssigen Körpern
nicht mehr als ein Zehnmilliontel und nicht weniger als zwei Hundertmilliontel
eines Millimeters, so daß ein Kubikmillimeter wenigstens 1000 Trillionen und
höchstens 125 000 Trillionen Moleküle enthält. „Dehnt sich eine erbsengroße
Glaskugel oder ein Wassertropfen bis zur Größe der Erdkugel aus, so ist jedes
Molekül größer als ein Schrotkorn und kleiner als ein Krocketball” (Thomson). Von
den kleinsten bekannten Lebewesen (Mikroben), den Spaltpilzen, gehen ca. 3000
Millionen auf 1 Kubikmillimeter, so daß jedes aus vielen Hunderttausend Millionen
Molekülen bestehen kann; deshalb können auch sehr kleine Lebewesen noch
einen komplizierten Bau haben.

7. Schwere oder Gravitation.


Jeder Körper ist schwer, das heißt, er wird von der Erde
angezogen. Infolge dieser A n z i e h u n g übt er einen Druck auf
seine Unterlage oder einen Zug an seinem Aufhängepunkte aus; ist
er durch nichts aufgehalten, so folgt er der Schwere und fällt zur
Erde.
Schwere ist demnach auch eine Kraft. Man nennt sie
Schwerkraft. Die R i c h t u n g der Schwere geht auf den
Mittelpunkt der Erde zu und wird gefunden durch einen Faden, an
dem ein schwerer Körper ruhig hängt. (Senkel, Senkblei, Bleilot.) Sie
heißt lotrecht, scheitelrecht oder vertikal, wohl auch senkrecht.
Jede zur vertikalen Richtung senkrechte Richtung heißt horizontal.
Je größer die M a s s e eines Körpers ist, desto mehr wird er von
der Erde angezogen, desto größer ist seine Schwere oder sein
Gewicht. Man vergleicht die Massen zweier Körper, indem man ihre
Gewichte vergleicht. Das geschieht mit der Wage, denn sie steht
dann im Gleichgewicht, wenn die Gewichte auf beiden Wagschalen
gleich sind. Dann sind auch die Massen gleich.
Einheit der Masse ist die Masse von 1 ccm destilliertem,
d. h. ganz reinem Wasser; man nennt diese Masse 1 Gramm.
Die Eigenschaft der Anziehung ist eine ganz allgemeine
Eigenschaft aller Körper. Die Erde zieht auch den Mond an, der
Mond zieht aber auch die Erde an; Erde und Mond ziehen sich also
gegenseitig an. Die Sonne zieht jeden Planeten an. Jeder
Himmelskörper übt auf jeden anderen eine solche Anziehung aus.
Diese allgemeine gegenseitige Anziehung aller Körper nennt man die
allgemeine Gravitation, die Universalgravitation; die
Erdschwere eines Körpers, d. h. die Anziehung eines Körpers durch
die Erde ist nur ein besonderer Fall davon.
Aufgaben:
a) Warum fühlen wir nichts davon, daß wir von einem Körper, in
dessen Nähe wir uns befinden, angezogen werden? b) Was muß sich
an einem Bleilot zeigen, das in der Nähe eines mächtigen Berges
aufgehängt wird? c) Welche Bedeutung hat die Aussage: ein Körper
wiegt 26 g?

8. Trägheit oder Beharrungsvermögen.


Trägheit oder Beharrungsvermögen ist das Bestreben
jedes Körpers, den Zustand der Bewegung oder Ruhe, in
dem er sich eben befindet, unverändert beizubehalten.
Man beobachtet stets, daß ein Körper, wenn er in Ruhe ist, auch
in Ruhe bleibt, und nicht von selbst oder aus eigenem inneren
Antrieb eine Bewegung anfängt; es muß vielmehr von außen eine
Ursache auf ihn wirken, damit er anfängt sich zu bewegen.
Ist ein Körper in Bewegung, so bemerkt man, daß er nach und
nach an Bewegung verliert; z. B. eine auf einer Eisfläche rollende
Kugel läuft immer langsamer und bleibt schließlich liegen, ein in
Umdrehung versetztes Rad geht langsamer, wenn keine Kraft mehr
darauf wirkt, eine an einem Faden aufgehängte und in Schwingung
versetzte Kugel schwingt immer langsamer und kommt zur Ruhe.
Man m ö c h t e demnach schließen, daß der Körper seine Bewegung
nach und nach aufgibt und in die Ruhe zurückkehrt.
Dies ist jedoch nicht richtig, wie man aus folgendem ersehen
kann. Eine Kugel rollt auf der Straße nicht weit, auf einer glatten
Holzbahn rollt sie weiter, auf der spiegelglatten Eisfläche eines Sees
läuft sie noch viel weiter. Die Kugel hat also nicht etwa das
Bestreben immer langsamer zu gehen; denn sonst müßte sie dieses
Bestreben auf allen Bahnen in gleichem Maße äußern. Nur die
H i n d e r n i s s e, welche die Rauheiten und Unebenheiten der Bahn
ihr bereiten, n e h m e n i h r d i e B e w e g u n g; denn je glatter die
Bahn ist, um so weniger gibt die Kugel von ihrer Geschwindigkeit her
und um so weiter läuft sie. Deshalb schließt man, w e n n g a r
keine Hindernisse vorhanden wären, so würde
der Körper gar nichts von seiner
Geschwindigkeit hergeben, also seine Bewegung
u n v e r ä n d e r t f o r t s e t z e n.
Dieser Schluß bleibt bestehen, obwohl wir bei keiner Bewegung
alle Hindernisse beseitigen können. Also folgt: Ein in Bewegung
befindlicher Körper kann nicht von selbst oder aus eigenem Antriebe
seine Bewegung verändern, er kann nicht die Geschwindigkeit
größer oder kleiner machen, er kann auch nicht die Richtung der
Bewegung verändern. Jeder Körper beharrt in dem
Bewegungszustande, in dem er sich eben befindet (Galilei).
Das beste Beispiel und der sicherste Beweis für die Richtigkeit
des Gesetzes der Trägheit ist die Bewegung unserer E r d e. Sie
schwebt frei im leeren Himmelsraume, dreht sich um ihre Achse,
braucht hiezu einen Tag, und behält seit Menschengedenken diese
Bewegung unverändert bei. Ebenso findet sie bei ihrem jährlichen
Laufe um die Sonne keine Hindernisse und setzt deshalb auch diese
Bewegung unverändert fort.
Aufgaben:
a) Gib Beispiele von bewegten Körpern, welche ihre Bewegung
nach und nach verlieren! b) Gib Beispiele von bewegten Körpern,
welche ihre Bewegung um so langsamer verlieren, je geringer die
Hindernisse sind! c) Gib Beispiele von bewegten Körpern, welche
ihre Bewegung sehr rasch verlieren!
Lehre von den Kräften.

9. Erklärung der Kraft.


Nach dem Trägheitsgesetze ändert ein Körper nicht von selbst
seinen Bewegungszustand. Zur Änderung seines
Bewegungszustandes ist eine äußere Ursache
n o t w e n d i g , w e l c h e w i r K r a f t n e n n e n. Kraft ist die
Ursache einer Veränderung des Bewegungszustandes eines
Körpers. Beispiel. Wenn wir einen Stein fallen lassen, so geht er aus
der Ruhe in Bewegung über. Wir schließen, daß auf ihn eine Kraft
von außen wirkt, die ihm eine Bewegung gibt. Da diese Bewegung
sogar immer schneller wird, so schließen wir, daß die Kraft
b e s t ä n d i g und fortwährend auf den Körper wirkt, indem sie ihm
zu seiner erlangten Geschwindigkeit, die er vermöge des
Trägheitsgesetzes beibehält, immer noch mehr Geschwindigkeit dazu
gibt. Die hier wirkende Kraft ist die Anziehungskraft oder
S c h w e r k r a f t der Erde.
Wenn wir einen Stein i n d i e H ö h e w e r f e n, so sehen wir,
daß er immer höher, aber auch immer langsamer fliegt, bald ganz
stehen bleibt, und dann anfängt herunterzufallen. Wir schließen, daß
auf ihn eine Kraft nach abwärts wirkt, die ihm von seiner
Geschwindigkeit, die er nach dem Trägheitsgesetze beibehalten will,
immerfort etwas hinwegnimmt, bis er keine Geschwindigkeit mehr
hat. Auch diese Kraft ist die S c h w e r k r a f t. Hat der Stein den
höchsten Punkt erreicht, so fällt er wie im vorigen Beispiel.
Ähnliches geht vor, wenn die in der Lokomotive tätige
Dampfkraft den Zug in Bewegung setzt und diese Bewegung immer
rascher macht.
Da die R e i b u n g die Bewegung jedes Körpers verlangsamt, so
ist auch die Reibung als eine Kraft anzusehen.
Außer den schon angeführten Kräften, der Schwerkraft, der
Dampfkraft und der Reibung gibt es noch folgende Arten: die Kraft
des fließenden Wassers und des Windes, sowie überhaupt jeder
bewegten Masse, die Kraft des Magnetes und der Elektrizität, die
elastische Kraft, die Kraft der Wärme im allgemeinen und die
Muskelkraft von Menschen und Tieren, u. a. m.
Wenn wir aber auch die Wirkungen der Kräfte beobachten,
untersuchen und verstehen können, so ist uns das Wesen der Kräfte
doch unbekannt. Wir wissen nicht, warum die Erde den Stein
anzieht.
Aufgaben:
a) Beschreibe den Vorgang, wenn eine Lokomotive den Zug in
Bewegung setzt, wenn sie ihn auf der Strecke in Bewegung hält, und
wenn der Zug zum Stehen gebracht wird ohne und mit Bremsen! b)
Wo bringen elastische Kräfte eine Bewegung hervor? c) Auf welche
Weise nützen wir die Kraft des Windes aus?

10. Allgemeiner Kraftbegriff, Maß der Kräfte.


Wirkt eine Kraft auf einen Körper, der sich nicht frei
bewegen kann, so ändert sich seine Form. Eine Schnur wird
länger, eine Säule kürzer, ein Brett, eine Reißschiene wird gebogen.
Bei der F e d e r w a g e (Fig. 2) hängt eine Drahtspirale längs
einer Skala herunter. Durch Ziehen verlängert sie sich, losgelassen
kehrt sie in die ursprüngliche Lage zurück.
Merkt man sich den Stand der Federwage bei 1 g, 2 g, 3 g u. s.
f., so wird sie auch das Gewicht eines anderen Körpers durch ihren
Stand angeben, ebenso auch die Größe irgend einer anderen an ihr
wirkenden Kraft, indem sie sich entsprechend ausdehnt.
Einheit der Kraft ist der Zug, mit dem die Erde 1 ccm
Wasser, die Masseneinheit, anzieht; diese Kraft heißt auch 1
Gramm. Unter 1 g Kraft ist also nicht die Masse von 1 g zu
verstehen, sondern die Kraft, mit welcher die Erde 1 ccm Wasser
anzieht, oder eine gleich große Kraft.
Will man an einem Punkte eine Kraft wirken lassen, so kann
man das oft dadurch machen, daß man an den Punkt einen
schweren Körper hängt. Durch Anhängen von Gewichten prüft man
die Kraft, welche zum Zerreißen eines Drahtes
notwendig ist, oder die Zugkraft eines Pferdes, oder die
Tragkraft eines Magnetes, die Kraft der Reibung und
ähnliches.
Wenn man an die Federwage ein Gewicht hängt,
so ändert sie in bestimmter Art ihren Zustand. Entfernt
man das Gewicht, so kehrt sie in den ursprünglichen
Zustand zurück. Es muß demnach in der verlängerten
Spirale eine Kraft vorhanden sein, vermöge deren sie in
die ursprüngliche Gestalt zurückkehrt. Dadurch also,
daß eine Kraft den Zustand der Spirale ändert, entsteht
in der Spirale infolge der Zustandsänderung selbst eine
Kraft, welche gerade in entgegengesetzter Richtung
wirkt; zudem dürfen wir beide Kräfte, da sie sich in
ihren Wirkungen aufheben, einander g l e i c h nennen.
Der Druck des Steines auf den Tisch oder auf die
Reißschiene bewirkt einen Gegendruck des Tisches
oder der Schiene nach aufwärts. Diese Erscheinungen
verallgemeinert man zu dem Prinzip von Wirkung
und Gegenwirkung, Aktion und Reaktion: Fig. 2.
Jede Kraft, welche keine Bewegung
hervorruft, bringt eine ihr gleiche und entgegengesetzt
wirkende Kraft hervor.
Die Wirkung einer Kraft hängt nur ab von der G r ö ß e der Kraft
und von ihrer R i c h t u n g, sonst aber von nichts weiter, also nicht
etwa davon, welcher Art die Kraft ist, ob Schwerkraft, oder
magnetische Kraft, oder Kraft einer gebogenen Feder, oder sonst
irgend eine.
Geht von einem Punkt eine Strecke aus, so kommt es dabei
auch bloß auf die G r ö ß e der Strecke und ihre R i c h t u n g an.
Wegen dieser Gleichartigkeit der Bestimmungsmerkmale von Kraft
und Strecke kann man eine Kraft durch Zeichnung darstellen,
indem man eine Strecke in der Richtung der Kraft anbringt, und ihr
eine Länge von so vielen beliebig gewählten Längeneinheiten gibt,
als die Kraft Krafteinheiten hat. Gemäß Figur 3 wirkt im Punkte A
eine Kraft P1 = 8 g in der Richtung AB
und eine Kraft P2 = 6 g in der
Richtung AC.
Wie bei jeder bildlichen
Darstellung bezeichnet man diese
Strecken abkürzend selbst als Kräfte.
Aufgaben:
a) Wenn eine Federwage
Fig. 3. unbelastet bei 72,3 cm, mit 5 g
belastet bei 84,5 cm, mit 8 g belastet
bei 91,7 cm steht, ist dann die Ausdehnung der Federwage bei
jedem Gramm gleich groß? b) Wenn ein Gewicht auf eine Säule
drückt, oder ein Gewicht an einem Faden hängt, welche Kraft stellt
die Reaktion vor? c) Gib Aktion und Reaktion an bei einer
zusammengedrückten Spiralfeder, beim Dampfkessel, beim Stemmen
einer Hantel!

11. Zusammensetzung der Kräfte.


Wirken auf einen Körper mehrere Kräfte, so bleibt er entweder
in Ruhe oder er kommt in Bewegung. Statik ist die Lehre von den
Bedingungen, unter welchen zwei oder mehrere Kräfte auf einen
Körper so wirken, daß er in Ruhe bleibt; Dynamik ist die Lehre von
der Bewegung, welche ein Körper unter der Wirkung einer oder
mehrerer Kräfte macht.
Wirken z w e i K r ä f t e auf einen Punkt, so sollte er zwei
Bewegungen zugleich machen, was nicht möglich ist; er macht
deshalb nur eine e i n z i g e B e w e g u n g, bewegt sich also so, wie
wenn auf ihn nur e i n e K r a f t wirken würde. Man kann deshalb die
zwei Kräfte durch eine einzige ersetzen; ebenso ist es bei mehreren
Kräften. Mehrere auf einen Punkt wirkende Kräfte können
stets durch eine einzige Kraft ersetzt werden. Die Kräfte,
welche auf den Körper wirken, nennt man S e i t e n k r ä f t e o d e r
K o m p o n e n t e n; die eine Kraft, welche imstande ist, dasselbe zu
leisten wie die Seitenkräfte zusammen, heißt die R e s u l t i e r e n d e,
R e s u l t a n t e o d e r M i t t e l k r a f t. Die Größe und Richtung
dieser Mittelkraft findet man nach folgenden Gesetzen:
1) Wirken die Kräfte in derselben Richtung, so ist die
Resultierende gleich der Summe der Kräfte und wirkt auch
in derselben Richtung. Z. B. ziehen 5 Arbeiter an einem Wagen,
so ist ihre Kraft gleich der eines Pferdes. Wird ein Schiff durch
Dampf und Wind getrieben, so ist seine Bewegung so groß, wie
wenn es von einer Kraft getrieben würde, die gleich der des
Dampfes und Windes zusammengenommen ist. Die Balken einer
Brücke müssen so stark gemacht werden, daß sie nicht bloß ihr
eigenes Gewicht und die auf ihnen liegenden Querbalken, sondern
auch noch die schwersten Lastwagen gut tragen können.
2) Wirken zwei Kräfte in
entgegengesetzter Richtung und
sind sie gleich groß, so halten sie
sich das Gleichgewicht, ihre
Resultierende ist = 0; sind sie nicht
gleich, so ist ihre Resultierende
gleich der Differenz der beiden
Kräfte und wirkt in der Richtung
der größeren Kraft. Z. B. fahrt ein Fig. 4.
Dampfschiff stromaufwärts, und ist die
Kraft des Dampfes größer als der Druck des fließenden Wassers, so
kommt das Schiff wirklich vorwärts, aber nur langsam, wie wenn es
in einem See wäre und nur eine schwache Dampfmaschine hätte.
Läßt die Kraft des Dampfes nach, so daß sie nur gleich dem Drucke
des Wassers ist, so bleibt das Schiff stehen, wie wenn es ohne
Dampfkraft in einem See wäre; wird die Kraft des Dampfes kleiner
als die des Wassers, so geht es zurück, wie wenn es ohne
Dampfkraft in einem langsam fließenden Flusse wäre.
3) Wirken zwei Kräfte unter einem Winkel auf einen Punkt, so
findet man die Resultierende, wenn man die zwei Kräfte P1 und P2
der Größe und Richtung nach durch Linien darstellt, zu diesen zwei
Strecken ein P a r a l l e l o g r a m m vervollständigt, und in diesem die
vom Angriffspunkte der Kräfte ausgehende D i a g o n a l e R zieht.
Die Diagonale des Kräfteparallelogramms gibt die Größe und
Richtung der Resultierenden an. Beweis durch den Versuch (Fig.
5). Man läßt eine Schnur über zwei Rollen gehen, hängt an die
Enden zwei Gewichte, P1 und P2, und zwischen die Rollen in A noch
ein Gewicht, P3, welches die Schnur etwas herunterzieht, so daß die
zwei seitlichen Gewichte unter einem Winkel auf den Punkt A wirken.

Fig. 5.

Da die Wirkung der Seitenkräfte P1 und P2 aufgehoben wird


durch die Kraft P3, so wirken die zwei Seitenkräfte AB und AC
ebensoviel, wie eine der Kraft P3 gleiche, aber entgegengesetzt, also
nach aufwärts gerichtete Kraft. Sucht man durch Zeichnung des
Kräfteparallelogramms ABCD die Resultante AD, so findet man, daß
sie wirklich diese Größe und Richtung hat. Ändert man die Gewichte
ab, so findet man, daß das Gesetz allgemein gilt.

You might also like