INSTITUTE OF MANAGEMENT, BUSINESS AND LOW
Donetsk branch
COURSE PAPER
IN ENGLISH
On the topic
“Organizing information”
Made by Perkov Aleksey,
1st year student of IT department
Checked by Dronova Valentina,
Teacher of English
Donetsk
2009
Contents
1. Introduction
2. The database
a) How is a database constructed?
3. Data structures
a) Pointers
b) Strings
c) Arrays
d) Static and Dynamic Data Structures
e) Stacks
4. Lists
5. Trees
1. Introduction
Information worked by the computer can organized in a variety of ways. Two important ways are that of a database and a spreadsheet.
On a database, work is arranged in fields and we will discuss these presently.
A spreadsheet will allow the user to keep accounts, make calculations and change information as necessary.
2. The database
A database is a sort of store where information is kept in an organized way. Access is gained through a keyboard or a special keypad which is a small hand-held unit containing keys which are pressed to work the set. The information can be of many different kinds. It is not always possible to gain access to a database and sometimes private pass-words are required in order that only certain people gain access. Some databases can be accessed through a specially adapted TV set using a modem. A modem is a small box that is specially made to change data into digital signals which can be sent through the telephone network. A database that can be accessed in this way is the Prestel system, consisting of thousands of pages of information and sometimes offered by libraries. Information given on Prestel is of a general nature, concerning such topics as entertainment, books for sale, airline journeys and so on. Information on a company database may, however, be of a very different kind. Such information might include names and addresses of employees, their salaries and general state of health. It might include goods manufactures by the company and suggested price lists. Much of the information a company might keep will probably be quite harmless, but other, more personal information about the company itself might be of a highly confidential nature requiring close security.
a) How is a database constructed?
A database can be organized in a variety of different ways depending upon the type of data that is to be stored. Take for instance a large collection of names and addresses, along with telephone numbers. This information will need to be broken down into fields, that is, in this case, the first name, surname, address and so on. Each category is known as a field. The field is either string (letters), or numeric (numbers). The database program usually asks you for your choice. These fields will be organized as:
Fields 1: surname (string)
Fields 2: fist name (string)
Fields 3: age (numeric)
Once the database has been set up, the computer will ask for the categories and they will be filled in as records. By using special commands the computer as able to search for names, addresses, telephone numbers or other fields and change, replace, add to, or even delete them altogether. Keeping information by this method saves much time and energy. Banks and building societies keep a lot of information about customers in this way.
Record № 8
Surname: Jones
First name: Michael
Address1: 33 Torr road
Address2: Liverpool
Telephone: 221-668973
Age: 41
3. Data structures
1. Most of the information we encounter in everyday life is structured in some way the commonest example is the words of our language, which are linked together in phrases, sentences and other more complex structures. The rules for constructing these structures are extremely complicated, yet we apply them by intuition.
2. Other examples of structured information include dictionaries, telephone directories and encyclopedias. These are all stores of information which would be useless if the information were not strictly arranged according to ma few simple rules. The structure of a collection of information makes it easy to locate individual items of information, and to insert new items, or delete items. The same reasoning applies to structured information stored in computers.
a) Pointers
3. A pointer is a data item which indicates the location of another data item. It may be thought of as an arrow, as show in Figure 1.
4. Pointers are used to build data structures. They provide the links which join elements of the structure. Of particular significance are pointers to the front and back of a data structure. Occasionally it is required that a pointer does not point to anything; in this situation, the pointer is said to have a null value. See Figure 2.
Figure 1. Figure 2.
b) Strings
5. A string is a sequence of characters regarded as a single data item. Strings may be of fixed or variable length. The length of a string is indicated either by the number of characters in the string placed at the front of the string, or by a special character called an end-of-string marker at the end. The following example shows these two methods of representing the same sting: 10CAPITAL194 CAPITAL194# Operations on sting are of two types: operations which join two or more strings to produce two or more sub-string.
c) Arrays
6. An array is a set of data items of identical types, stored together. ............