SlideShare a Scribd company logo
1 of 19
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 Using C: An Introduction

MIS-3rd Unit.pptx
MIS-3rd Unit.pptxMIS-3rd Unit.pptx
MIS-3rd Unit.pptxSumit Kumar
 
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 KUMARBHARATH 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 dbmsRupali Rana
 
1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptx1. Introduction to Data Structure.pptx
1. Introduction to Data Structure.pptxRahikAhmed
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxssuser031f35
 
Presentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and morePresentations, Documents, Infographics, and more
Presentations, Documents, Infographics, and moreKwadjoOwusuAnsahQuar
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databasesMR Z
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Dios Kurniawan
 
introduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptintroduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptrekhasai2468
 

Similar to Data Structures Using C: An Introduction (20)

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
 
introduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptintroduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.ppt
 

Recently uploaded

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 

Recently uploaded (20)

Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 

Data Structures Using C: An Introduction

  • 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.