3 Data. Software And Data Data Data element – a single, meaningful unit of data. Name Social Security Number Data structure – a set of related data elements.

Slides:



Advertisements
Similar presentations
Indexing Large Data COMP # 22
Advertisements

Stacks, Queues, and Linked Lists
Preliminaries Advantages –Hash tables can insert(), remove(), and find() with complexity close to O(1). –Relatively easy to program Disadvantages –There.
M180: Data Structures & Algorithms in Java
Data Structures: A Pseudocode Approach with C
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Page 13 1.a) A block is a group of records. A block is referred to as the UNIT of TRANSFER In computer files as when a record is searched / updated the.
©Brooks/Cole, 2003 Chapter 11 Data Structures. ©Brooks/Cole, 2003 Understand arrays and their usefulness. Understand records and the difference between.
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 18: Hash Tables.
Lecture - 1 on Data Structures. Prepared by, Jesmin Akhter, Lecturer, IIT,JU Data Type and Data Structure Data type Set of possible values for variables.
1 Chapter 9 Maps and Dictionaries. 2 A basic problem We have to store some records and perform the following: add new record add new record delete record.
Data Indexing Herbert A. Evans. Purposes of Data Indexing What is Data Indexing? Why is it important?
1 Hash-Based Indexes Chapter Introduction  Hash-based indexes are best for equality selections. Cannot support range searches.  Static and dynamic.
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
1 Hash-Based Indexes Chapter Introduction : Hash-based Indexes  Best for equality selections.  Cannot support range searches.  Static and dynamic.
Quick Review of material covered Apr 8 B+-Tree Overview and some definitions –balanced tree –multi-level –reorganizes itself on insertion and deletion.
Programming Logic and Design Fourth Edition, Comprehensive
Self Referential Structure. A structure may not contain a member of its own type. struct check { int item; struct check n; // Invalid };
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Chapter 13 File Structures. Understand the file access methods. Describe the characteristics of a sequential file. After reading this chapter, the reader.
CHAPTER 05 Compiled by: Dr. Mohammad Omar Alhawarat Stacks & Queues.
Chapter 8 Data Abstractions Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 1.
 DATA STRUCTURE DATA STRUCTURE  DATA STRUCTURE OPERATIONS DATA STRUCTURE OPERATIONS  BIG-O NOTATION BIG-O NOTATION  TYPES OF DATA STRUCTURE TYPES.
External data structures
C++ STL CSCI 3110.
Fall 2000M.B. Ibáñez Lecture 22 File-System I File Concept.
©Brooks/Cole, 2003 Chapter 13 File Structures. ©Brooks/Cole, 2003 Understand the file access methods. Describe the characteristics of a sequential file.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
DATA STRUCTURE & ALGORITHMS (BCS 1223) NURUL HASLINDA NGAH SEMESTER /2014.
Data Structures: Advanced Damian Gordon. Advanced Data Structure We’ll look at: – Linked Lists – Trees – Stacks – Queues.
HASHING PROJECT 1. SEARCHING DATA STRUCTURES Consider a set of data with N data items stored in some data structure We must be able to insert, delete.
Foundation of Computing Systems Lecture 3 Stacks and Queues.
Data Structures Types of Data Structure Data Structure Operations Examples Choosing Data Structures Data Structures in Alice.
Chapter 10 Hashing. The search time of each algorithm depend on the number n of elements of the collection S of the data. A searching technique called.
Dynamic Array. An Array-Based Implementation - Summary Good things:  Fast, random access of elements  Very memory efficient, very little memory is required.
System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.
Chapter 11 Data Structures. Understand arrays and their usefulness. Understand records and the difference between an array and a record. Understand the.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Collections Data structures in Java. OBJECTIVE “ WHEN TO USE WHICH DATA STRUCTURE ” D e b u g.
Subject Name : Data Structure Using C Title : Linked Lists
Data Structures Chapter 6. Data Structure A data structure is a representation of data and the operations allowed on that data. Examples: 1.Array 2.Record.
1 Algorithms Queues, Stacks and Records stored in Linked Lists or Arrays.
2005MEE Software Engineering Lecture 7 –Stacks, Queues.
Department of Computer Science 1 Some Practice Let’s practice for the final a little bit. OK?
Data Structure and Algorithms
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To introduce the basic concepts of linked lists ❏ To introduce the basic concepts.
Linked list: a list of items (nodes), in which the order of the nodes is determined by the address, called the link, stored in each node C++ Programming:
Chapter 5 Record Storage and Primary File Organizations
C Programming Day 2. 2 Copyright © 2005, Infosys Technologies Ltd ER/CORP/CRS/LA07/003 Version No. 1.0 Union –mechanism to create user defined data types.
CSC 143T 1 CSC 143 Highlights of Tables and Hashing [Chapter 11 p (Tables)] [Chapter 12 p (Hashing)]
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
List Structures What is a list? A homogeneous collection of elements with a linear relationship between the elements linear relationship - each element.
Mohammed I DAABO COURSE CODE: CSC 355 COURSE TITLE: Data Structures.
Data Structure By Amee Trivedi.
Data Indexing Herbert A. Evans.
Indexing Goals: Store large files Support multiple search keys
Program based on queue & their operations for an application
Data Structure Interview Question and Answers
Review Deleting an Element from a Linked List Deletion involves:
CS 1114: Implementing Search
Ch. 8 File Structures Sequential files. Text files. Indexed files.
Stacks and Queues.
Data Structures Interview / VIVA Questions and Answers
DATA STRUCTURE QUEUE.
Agenda Test next Week! SI or no SI? File Update Techniques – Review.
Data structures.
Indexing and Hashing B.Ramamurthy Chapter 11 2/5/2019 B.Ramamurthy.
Advanced Database System
Presentation transcript:

3 Data

Software And Data Data Data element – a single, meaningful unit of data. Name Social Security Number Data structure – a set of related data elements. – list, queue, linked list, array, stack, file

Fig. 3.18: The most basic data structure is a list. Each entry is called a node, and each node contains a single data element.

Fig. 3.19: In a linked list, each node contains data plus a pointer to the next node. The data items need not be stored in adjacent memory locations because the pointers define the list’s logical order.

Fig. 3.20: To insert a node into a linked list, locate the prior node, change its pointer to the new node, and set the new node’s pointer to the next node.

Fig. 3.21: To delete a node from a linked list, change the appropriate pointer to “jump over” the deleted node.

Fig. 3.22a: A stack is a linked list in which all insertions and deletions occur at the top. Access to the stack is controlled by a single pointer.

Fig. 3.22b: Because insertions and deletions occur only at the top, the last item added to the stack is the first item removed from the stack.

Fig. 3.23a: A queue is a linked list in which insertions occur at the rear and deletions occur at the front.

Fig. 3.23b: Access to a queue is controlled by two pointers, and the first item added to a queue is the first item removed.

Software And Data Data Data File – The most familiar type of data structure – A set of data elements (fields) – A group of related fields (records) – A group of related records (file)

Fig. 3.24: Fields are grouped to form records. A file is a set of related records.

Software And Data Data Data File (mainframe Processing) – The data is processed record by record – Programs are written to read a record, process its fields, generate the appropriate output, and then read and process another record. – Because only one record is in memory at a time, relatively little memory is needed.

Fig. 3.25: A relative record number indicates a record’s position relative to the first record in the file.

Fig. 3.26: Given the start of file address and a relative record number, a physical disk address can be computed.

Software and Data Access Techniques Sequential access – accessing data in physical order. – Processing begins with relative record 0, then moves to relative record 1, 2, and so on. Direct (random) access – accessing data without regard for physical order. – Index – hashing

Fig. 3.27: An index can be used to convert a logical key to a relative record number.

Software and Data Database Management Traditional files – data redundancy – data dependency Database – centralized – single copy of each data element – programmer can ignore physical data structure

Fig. 3.28: Many of the problems associated with traditional data access techniques can be solved by using a database.