Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.

Slides:



Advertisements
Similar presentations
Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Advertisements

Chapter 4 : File Systems What is a file system?
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.
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
Processing Data in External Storage CS Data Structures Mehmet H Gunes Modified from authors’ slides.
Managing data Resources: An information system provides users with timely, accurate, and relevant information. The information is stored in computer files.
LEARNING OBJECTIVES Index files.
2010/3/81 Lecture 8 on Physical Database DBMS has a view of the database as a collection of stored records, and that view is supported by the file manager.
METU Department of Computer Eng Ceng 302 Introduction to DBMS Disk Storage, Basic File Structures, and Hashing by Pinar Senkul resources: mostly froom.
1 File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
DBMS Physical Design Physical design is concerned with the placement of data and selection of access methods for efficiency and ongoing maintenance.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 13 Disk Storage, Basic File Structures, and Hashing.
Elementary Data Types Scalar Data Types Numerical Data Types Other
Modern Systems Analysis and Design Third Edition
File Management.
2 Systems Architecture, Fifth Edition Chapter Goals Describe numbering systems and their use in data representation Compare and contrast various data.
Introducing Hashing Chapter 21 Copyright ©2012 by Pearson Education, Inc. All rights reserved.
File Management Chapter 12.
C o n f i d e n t i a l Developed By Nitendra NextHome Subject Name: Data Structure Using C Title: Overview of Data Structure.
CHP - 9 File Structures. INTRODUCTION In some of the previous chapters, we have discussed representations of and operations on data structures. These.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 17 Disk Storage, Basic File Structures, and Hashing.
SCSC 311 Information Systems: hardware and software
Announcements Exam Friday Project: Steps –Due today.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
Data and its manifestations. Storage and Retrieval techniques.
CHAPTER 09 Compiled by: Dr. Mohammad Omar Alhawarat Sorting & Searching.
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
File Structures Foundations of Computer Science  Cengage Learning.
Common Field Types Primary Key Descriptive Fields Foreign Key.
© 2006 Pearson Addison-Wesley. All rights reserved13 B-1 Chapter 13 (continued) Advanced Implementation of Tables.
Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.
External data structures
Indexed and Relative File Processing
©Brooks/Cole, 2003 Chapter 13 File Structures. ©Brooks/Cole, 2003 Understand the file access methods. Describe the characteristics of a sequential file.
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
13. File Structures. ACCESSMETHODSACCESSMETHODS 13.1.
Hashing Hashing is another method for sorting and searching data.
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.
File Structures. 2 Chapter - Objectives Disk Storage Devices Files of Records Operations on Files Unordered Files Ordered Files Hashed Files Dynamic and.
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.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
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.
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 
Appendix C File Organization & Storage Structure.
Hashed Files Text Versus Binary Meghan Cavanagh. Hashed Files a file that is searched using one of the hashing methods User gives the key, the function.
Chapter 15 A External Methods. © 2004 Pearson Addison-Wesley. All rights reserved 15 A-2 A Look At External Storage External storage –Exists beyond the.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
CIS 250 Advanced Computer Applications Database Management Systems.
Systems Architecture, Fourth Edition 1 Data Representation Chapter 3.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Chapter 5 Record Storage and Primary File Organizations
Appendix C File Organization & Storage Structure.
© 2006 Pearson Addison-Wesley. All rights reserved15 A-1 Chapter 15 External Methods.
DBMS P HYSICAL D ESIGN IN FILE ORGANIZATION Physical design is concerned with the placement of data and selection of access methods for efficiency and.
Chapter 9: Data types and data structures OCR Computing for A Level © Hodder Education 2009.
Chapter 3 Data Representation
Course Developer/Writer: A. J. Ikuomola
CS522 Advanced database Systems
Ch. 8 File Structures Sequential files. Text files. Indexed files.
Operating Systems (CS 340 D)
Database Management System
Modern Systems Analysis and Design Third Edition
External Methods Chapter 15 (continued)
Indexing, Access and Database System Architecture
DBMS Physical Design Physical design is concerned with the placement of data and selection of access methods for efficiency and ongoing maintenance.
PROGRAMMING CONCEPTS CHAPTER 8
Presentation transcript:

Computers Data Representation Chapter 3, SA

Data Representation and Processing Data and information processors must be able to: Recognize external data and convert it to an appropriate internal format Store and retrieve data internally Transport data among internal storage and processing components

Binary Representation of Data Computers represent data using binary numbers. Binary numbers correspond directly with values in boolean logic. Computers combine multiple digits to form a single data value to represent large numbers.

Basic data types Integers – whole numbers Real numbers – w/ fractional components Exponential representation Character ASCII vs EBCDIC Boolean –true/false BLOB (Binary Large Object)

Data structures Defined in software Arrays Lists Records Tables Files Indices Objects

Data Structures A data structure is a related group of primitive data elements that is organized for some type of processing. Data structures are defined and manipulated within software.

Data Structures Virtually all data structures make extensive use of pointers and addresses. Pointer – a data element that contains the address of another data element. Address – the location of some data element within a storage device.

Arrays and Linked Lists Linked List: A linked list is a data structure that uses pointers so list elements can be scattered among nonsequential storage locations.

Records and Files A record is a data structure composed of other data structures or primitive data elements. Records are used as a unit of input and output to files or databases.

File Organization Physical arrangement of the records of a file on secondary storage devices Sequential Linked List Indexed Hashed

Sequential File Sequential file sorted in alphabetical order. Sequential files are usually sorted in ID sequence order to facilitate batch processing.

Sequential File Processing Transaction Old Master New Master Process Sequential files must be recopied from the point of any insertion or deletion to the end of the file. They are commonly used in batch processing where a new master file will be generated each time the file is updated.

Linked List Linked list to sort data alphabetically within department. An external reference must point to the start record (05).

Linked List File Processing The next record in a linked list is found at the address stored in the record. Records are added at any location in the DASD and pointers adjusted to include them. Deletions are not erased, but pointers changed to omit the deleted record.

Indexed File (sequential index) Index to access data by department abbreviation.

Indexed File Processing Index Data File When a record is inserted or deleted in a file the data can be added at any location in the data file. Each index must also be updated to reflect the change. For a simple sequential index this may mean rewriting the index for each insertion. Index

Segmented Index Index Data Leaf Root Nodes

Indexed File Processing (segmented index) Data File Index Data can be inserted or deleted at any location in the data file. The index(es) must be updated for each change, but only the affected segments need to be rewritten.

Hashing (Prime Number Remainder Algorithm) zPick a prime number to define the file space zDivide the key by the prime number zPut the result in the location of the remainder Key = Location = 2

Hashed File Processing Key Calculation addrContents

Records and Files A sequence of records on secondary storage is called a file. A sequence of records stored within main memory is called a table. Sequential files suffer the same problems as contiguous arrays when inserting and deleting records. To eliminate this problem, linked lists and indexed files are used.

Classes and Objects