SlideShare a Scribd company logo
Data Structures Using C
MSCS1110
4/24/2023 1
BOOKS
• Text Books
– 1. S. Lipschutz, “Data Structures”, Mc-Graw Hill
International Editions.
– 2. Robert L Kruse, Bruce P. Leung, Clovis L. Tondo,
“Data Structure and Program Design in C”, PHI.
– 3. Ellis Horowitz, S. Sahni, D. Mehta,
Fundamentals of Data Structures in C++”, Galgotia
Book Source, New Delhi.
4/24/2023 2
Books
• Reference Books
– 1. Y. Langsam, M. Augenstin and A. Tannenbaum,
“Data Structures using C and C++”, Pearson
Education Asia.
– 2. Jean-Paul Tremblay, Paul. G. Soresan, “An
introduction to data structures with Applications”,
Tata Mc-Graw Hill International Editions.
– 3. Elmasri, Navathe, ”Fundamental of Database
systems”, Pearson Education.
Reference Sites
• WWW.funducode.com
• http://www.nptel.iitm.ac.in/video.php?subjec
tId=106102064
• http://www.cs.auckland.ac.nz/~jmor159/PLDS
210/ppt/index.html
Topic to be discussed
• Introduction
• Data Structure Operations
• Basic Terminology
• Elementary Data Organization
Data Structure
• DATA
– Anything in real world
– Data are simply values or sets of values.
• STRUCTURE
– Organization of data
• using mathematical & logical model
4/24/2023 6
Data Structure
• Data may be organized in many different ways; the
logical or mathematical model of a particular
organization of data is called data structure.
– A logical data model (LDM) is a representation of an
organization's data, organized in terms of entities and
relationships and is independent of any particular data
management technology.
– A mathematical model is a description of a system (set of
interacting or interdependent components) using
mathematical concepts and language.
4/24/2023 7
Type of DS
• Primitive Data Structures
– Primitive Data Structures are the basic data
structures that directly operate upon the machine
instructions. they have different representations on
different computers.
• Non-primitive Data Structures
– Non-primitive data structures are more complicated
data structures and are derived from primitive data
structures. They emphasize on grouping same or
different data items with relationship between each
data item.
Arrays, Lists and Files come under this category.
4/24/2023 8
4/24/2023 9
Data Structure
• Data structure are classified in the following
two categories:
– Linear Data structure
– Non linear Data structure
4/24/2023 10
Linear Data structure
• In the Linear Data structures processing of
data items is possible in linear fashion i. e.
data can be processed one by one
sequentially.
• Linear Data structures includes following types
of data structures:
– Array
– Linked List
– Stack
– Queues
4/24/2023 12
Non linear Data structure
• A data structure in which insertion and
deletion is not possible in a linear fashion is
called Non linear Data structure.
• In this category of data structures:
– Tree
– Graph
4/24/2023 13
Data Structure Operations
• Traversing: accessing each record exactly once so that certain
items in the record may be processed.
• Searching: finding the location of the record with a given key
value, or finding the location of all records which satisfy one
or more conditions.
• Insertion: adding a new record to the structure.
• Deletion: remove a record from the structure.
• Sorting: arrange the record ascending or descending order.
• Merging: combining the records in two different sorted files
into a single sorted file.
• Update: change in the record.
4/24/2023 14
Basic terminology
• Elementary Data Organization
–Data are simply values or sets of values.
–A data items refers to a single unit of values.
• Examples student name, employee name etc
–Data items that are divided into sub-items
are called group items.
• For example, an employee’s name may be
divided into three subitems- first name, middle
name & last name.
• But ID number would normally be treated as a
single item.
Elementary Data Organization
• An entity is something that has certain
attributes or properties which may be
assigned values. The values themselves may
be either numeric or nonnumeric.
• Example1: Entity:-Person
– Attributes: Name Age Sex id Number
– Values: James 20 M 3030307
• Example2: Entity:- Chair
– Attributes: length width height foldable
– Values: 2feet 2 feet 2.5feet yes
Elementary Data Organization
• Collection of data are frequently organized into a
hierarchy of fields, records and files (tabular form).
• Field :
– A field is a single elementary unit of information
representing an attribute of an entity.
• Record :
– A record is the collection of field values of a given entity.
• File :
– A file is the location of records of the entities in a given
entity set.
• Example
– Suppose an automobile dealership maintains an inventory
file where each record contains the following data:
• Serial no. type year price Accessories
File : student
Field (Name) Field (age) Field
(address)
Field (state)
james 34 gzb up
tom 45 roorkee uk
ram 32 delhi delhi
Data/entity/file: Student
Attribute/Field: Name, Age, address and state
Values/record: james, 34, gzb, up…….
Elementary Data Organization
• Records may also be classified according to
length.
– Fixed-length records:
• all records contain the same data items with the same
amount of space assigned to each data items. Like
image
– Variable-length records:
• file records may contain different length.
– For example:
• Student records usually have variable length, since
different students take different numbers of courses.

More Related Content

Similar to Data Structures.ppt

Data dictionary
Data dictionaryData dictionary
Data dictionary
Ravi Shekhar
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
ssuser5e8d69
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
Sumit Kumar
 
BAB 7 Pangkalan data new
BAB 7   Pangkalan data newBAB 7   Pangkalan data new
BAB 7 Pangkalan data new
Nur Salsabila Edu
 
Ch1
Ch1Ch1
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
thamizh arasi
 
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMARIntroduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
BHARATH KUMAR
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
Madishetty Prathibha
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
Rupali Rana
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
SSN College of Engineering, Kalavakkam
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx
RahikAhmed
 
DBMS topic in PU
DBMS topic in PUDBMS topic in PU
DBMS topic in PU
Eerla Rajasekhar
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
ssuser031f35
 
Presentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and morePresentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and more
KwadjoOwusuAnsahQuar
 
Data structures
Data structuresData structures
Data structures
Amrutha Rajan
 
DBMS
DBMS DBMS
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
MR Z
 
Database system
Database system Database system
Database system
Hitesh Mohapatra
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
Dios Kurniawan
 
rdbms-notes
rdbms-notesrdbms-notes
rdbms-notes
Mohit Saini
 

Similar to Data Structures.ppt (20)

Data dictionary
Data dictionaryData dictionary
Data dictionary
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
 
MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptx
 
BAB 7 Pangkalan data new
BAB 7   Pangkalan data newBAB 7   Pangkalan data new
BAB 7 Pangkalan data new
 
Ch1
Ch1Ch1
Ch1
 
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMARIntroduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
Introduction of Data Structures and Algorithms by GOWRU BHARATH KUMAR
 
Introduction to data structures (ss)
Introduction to data structures (ss)Introduction to data structures (ss)
Introduction to data structures (ss)
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx
 
DBMS topic in PU
DBMS topic in PUDBMS topic in PU
DBMS topic in PU
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Presentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and morePresentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and more
 
Data structures
Data structuresData structures
Data structures
 
DBMS
DBMS DBMS
DBMS
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
 
Database system
Database system Database system
Database system
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
rdbms-notes
rdbms-notesrdbms-notes
rdbms-notes
 

Recently uploaded

Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 

Recently uploaded (20)

Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 

Data Structures.ppt

  • 1. Data Structures Using C MSCS1110 4/24/2023 1
  • 2. BOOKS • Text Books – 1. S. Lipschutz, “Data Structures”, Mc-Graw Hill International Editions. – 2. Robert L Kruse, Bruce P. Leung, Clovis L. Tondo, “Data Structure and Program Design in C”, PHI. – 3. Ellis Horowitz, S. Sahni, D. Mehta, Fundamentals of Data Structures in C++”, Galgotia Book Source, New Delhi. 4/24/2023 2
  • 3. Books • Reference Books – 1. Y. Langsam, M. Augenstin and A. Tannenbaum, “Data Structures using C and C++”, Pearson Education Asia. – 2. Jean-Paul Tremblay, Paul. G. Soresan, “An introduction to data structures with Applications”, Tata Mc-Graw Hill International Editions. – 3. Elmasri, Navathe, ”Fundamental of Database systems”, Pearson Education.
  • 4. Reference Sites • WWW.funducode.com • http://www.nptel.iitm.ac.in/video.php?subjec tId=106102064 • http://www.cs.auckland.ac.nz/~jmor159/PLDS 210/ppt/index.html
  • 5. Topic to be discussed • Introduction • Data Structure Operations • Basic Terminology • Elementary Data Organization
  • 6. Data Structure • DATA – Anything in real world – Data are simply values or sets of values. • STRUCTURE – Organization of data • using mathematical & logical model 4/24/2023 6
  • 7. Data Structure • Data may be organized in many different ways; the logical or mathematical model of a particular organization of data is called data structure. – A logical data model (LDM) is a representation of an organization's data, organized in terms of entities and relationships and is independent of any particular data management technology. – A mathematical model is a description of a system (set of interacting or interdependent components) using mathematical concepts and language. 4/24/2023 7
  • 8. Type of DS • Primitive Data Structures – Primitive Data Structures are the basic data structures that directly operate upon the machine instructions. they have different representations on different computers. • Non-primitive Data Structures – Non-primitive data structures are more complicated data structures and are derived from primitive data structures. They emphasize on grouping same or different data items with relationship between each data item. Arrays, Lists and Files come under this category. 4/24/2023 8
  • 10. Data Structure • Data structure are classified in the following two categories: – Linear Data structure – Non linear Data structure 4/24/2023 10
  • 11.
  • 12. Linear Data structure • In the Linear Data structures processing of data items is possible in linear fashion i. e. data can be processed one by one sequentially. • Linear Data structures includes following types of data structures: – Array – Linked List – Stack – Queues 4/24/2023 12
  • 13. Non linear Data structure • A data structure in which insertion and deletion is not possible in a linear fashion is called Non linear Data structure. • In this category of data structures: – Tree – Graph 4/24/2023 13
  • 14. Data Structure Operations • Traversing: accessing each record exactly once so that certain items in the record may be processed. • Searching: finding the location of the record with a given key value, or finding the location of all records which satisfy one or more conditions. • Insertion: adding a new record to the structure. • Deletion: remove a record from the structure. • Sorting: arrange the record ascending or descending order. • Merging: combining the records in two different sorted files into a single sorted file. • Update: change in the record. 4/24/2023 14
  • 15. Basic terminology • Elementary Data Organization –Data are simply values or sets of values. –A data items refers to a single unit of values. • Examples student name, employee name etc –Data items that are divided into sub-items are called group items. • For example, an employee’s name may be divided into three subitems- first name, middle name & last name. • But ID number would normally be treated as a single item.
  • 16. Elementary Data Organization • An entity is something that has certain attributes or properties which may be assigned values. The values themselves may be either numeric or nonnumeric. • Example1: Entity:-Person – Attributes: Name Age Sex id Number – Values: James 20 M 3030307 • Example2: Entity:- Chair – Attributes: length width height foldable – Values: 2feet 2 feet 2.5feet yes
  • 17. Elementary Data Organization • Collection of data are frequently organized into a hierarchy of fields, records and files (tabular form). • Field : – A field is a single elementary unit of information representing an attribute of an entity. • Record : – A record is the collection of field values of a given entity. • File : – A file is the location of records of the entities in a given entity set. • Example – Suppose an automobile dealership maintains an inventory file where each record contains the following data: • Serial no. type year price Accessories
  • 18. File : student Field (Name) Field (age) Field (address) Field (state) james 34 gzb up tom 45 roorkee uk ram 32 delhi delhi Data/entity/file: Student Attribute/Field: Name, Age, address and state Values/record: james, 34, gzb, up…….
  • 19. Elementary Data Organization • Records may also be classified according to length. – Fixed-length records: • all records contain the same data items with the same amount of space assigned to each data items. Like image – Variable-length records: • file records may contain different length. – For example: • Student records usually have variable length, since different students take different numbers of courses.