Professional Documents
Culture Documents
Puter & File Organization PDF
Puter & File Organization PDF
SMS Hoque 1
Computer Application
• Health
• Office
• Library
• Banking
• Retailers
• Education
• Entertainment
• Home & Personal
• Hotel & Restaurant
• Industrial Enterprise
• Commercial Enterprise etc…
SMS Hoque 2
Data Organization
• Can computer understand our language?
Like Raul, 456, Yes, No etc?
The answer is NO.
• What language computer can understand then?
The answer is Machine Language or just 0 and 1
• Is it possible for general computer user to translate
everything into 0 and 1?
The answer is NO
Then how our valuable data can be organized?
SMS Hoque 3
Data Organization File1
Record 2 Record 1
Few characters form a FIELD
Few records form a FILE
N A M E
File3 File2 File1
Byte or Character
SMS Hoque 4
Data Organization
Bit: A storage unit which is 0 or 1
Byte: Eight bit together make a byte or character.
Or to form a single character eight bits required
Say 00110101 = A
Field: Few character collectively form a field.
Say, M, I, S, H, and U may be grouped together
in a field called Name
Record: Collection of related fields together called record
File: More then one record makes a file
Database: Collection of related files is called database
SMS Hoque 5
Data Organization
Student-Course Database
StudentFile CourseFile
StdID Name Course CrsID CrsName Fee
Now Identify
Character, Field, Record, File, and Database
SMS Hoque 6
File organization and access
• Data in secondary storage is kept in files
• A name is assigned to the file
• The process of reading data or writing data to the file
depends greatly on how the file is organized
• In general, the following two methods are used in file
organization and file access:
Sequential access and Direct access
there are another version of sequential access which is
Indexed sequential.
It represents a compromise between the two methods
SMS Hoque 7
File organization and access
Sequential Access
1 Rana 1st
Mishu
2 Rina 2nd Steps involve
Kamal in finding a name
3 3rd
Kajal
4 4th
5 5th
SMS Hoque 8
File organization and access
Sequential Access
So how did you look for a particular name?
By reading all the
names one after
The process you went through
another, until you is a sequential search
SMS Hoque 10
File organization and access
Sequential Access
SMS Hoque 11
File organization and access
Direct Access or Random Access
ID
1 20
2 Steps involve 23
In finding ID 24
1st 24
3
Playing songs in the
4 21 Compact Disk
5 22
SMS Hoque 12
File organization and access
Direct Access or Random Access
SMS Hoque 13
File organization and access
Indexed Sequential
Indexed sequential files are organized
So the information in the files can be
accessed sequentially and it can be
Accessed directly or randomly.
SMS Hoque 14