Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International.

Slides:



Advertisements
Similar presentations
Chapter 4 : File Systems What is a file system?
Advertisements

2P13 Week 11. A+ Guide to Managing and Maintaining your PC, 6e2 RAID Controllers Redundant Array of Independent (or Inexpensive) Disks Level 0 -- Striped.
File Systems Examples.
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 10: File-System Interface
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.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
Hashing Techniques.
10: File Systems1 FILE SYSTEMS INTERFACE FILE CONCEPT A collection of related bytes having meaning only to the creator. The file can be "free formed",
Advance Database System
Managing data Resources: An information system provides users with timely, accurate, and relevant information. The information is stored in computer files.
Chapter 12 File Management
Connecting with Computer Science, 2e
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Efficient Storage and Retrieval of Data
Ceng Operating Systems
1 File Management in Representative Operating Systems.
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
Structured Data Types and Encapsulation Mechanisms to create new data types: –Structured data Homogeneous: arrays, lists, sets, Non-homogeneous: records.
File Management.
File Management Chapter 12.
MIS316 – BUSINESS APPLICATION DEVELOPMENT – Chapter 14 – Files and Streams 1Microsoft Visual C# 2012, Fifth Edition.
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.
Objectives Learn what a file system does
File Systems (1). Readings r Silbershatz et al: 10.1,10.2,
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.
CS 221 Analysis of Algorithms Data Structures Dictionaries, Hash Tables, Ordered Dictionary and Binary Search Trees.
Chapter 13 File Structures. Understand the file access methods. Describe the characteristics of a sequential file. After reading this chapter, the reader.
File Implementation. File System Abstraction How to Organize Files on Disk Goals: –Maximize sequential performance –Easy random access to file –Easy.
Data Structures Winter What is a Data Structure? A data structure is a method of organizing data. The study of data structures is particularly important.
Computers Data Representation Chapter 3, SA. Data Representation and Processing Data and information processors must be able to: Recognize external data.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
File Structures Foundations of Computer Science  Cengage Learning.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
Chapter 10: File-System Interface 10.1 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts – 8 th Edition 2014.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Operating Systems COMP 4850/CISG 5550 File Systems Files Dr. James Money.
©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.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
13. File Structures. ACCESSMETHODSACCESSMETHODS 13.1.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Chapter 14: Files and Streams. 2Microsoft Visual C# 2012, Fifth Edition Files and the File and Directory Classes Temporary storage – Usually called computer.
Elementary Data Organization. Outline  Data, Entity and Information  Primitive data types  Non primitive data Types  Data structure  Definition 
Prof. amr Goneid, AUC1 CSCE 110 PROGRAMMING FUNDAMENTALS WITH C++ Prof. Amr Goneid AUC Part 13. Abstract Data Types (ADT’s)
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.
CIS 250 Advanced Computer Applications Database Management Systems.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
FILE ORGANIZATION.
Chapter 11 File Systems and Directories. 2 File Systems (Chapter 11.1) File: 1. A named collection of related data. 2.smallest amount of information that.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally FILE SYSTEM.
NTFS Filing System CHAPTER 9. New Technology File System (NTFS) Started with Window NT in 1993, Windows XP, 2000, Server 2003, 2008, and Window 7 also.
Chapter 5 Record Storage and Primary File Organizations
CHAPTER 9 File Storage Shared Preferences SQLite.
W4118 Operating Systems Instructor: Junfeng Yang.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
Data Structure Interview Question and Answers
CS522 Advanced database Systems
Ch. 8 File Structures Sequential files. Text files. Indexed files.
The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited)
Variable Length Data and Records
Files Management – The interfacing
Chapter 16 File Management
Introduction to Data Structure
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Data Structure & File Systems Hun Myoung Park, Ph.D., Public Management and Policy Analysis Program Graduate School of International Relations International University of Japan

Outline  Data Structure  Language Translators  Software Development  Software Analysis and Design  Programming  Implementation & Maintenance  Documentation 2

Data Type  Abstract data types (ADT) include  Stack (LIFO)  Queue (FIFO)  Tree and graph  Primitive type: number, string, boolean  Composite type (bundling of elements): array and record 3

Data Structure  A way of storing and organizing data.  “A collection of related variables that can be accessed individually or as a whole”  “A set of data items that share a specific relationship”  Arrays, records, and linked lists.  Array (fixed-size sequence of elements) vs. list (variable size) 4

Data Structure: Array  A sequenced collection of elements  Elements may or may not share the same data type  Array name, or array name and index (subscript) to refer to elements.  a[0], a[1], a[2]… instead of a0, a1, a2, …  Array name alone a means a[0], a[1],…  Multi-dimensional array a[0][3] 5

Data Structure: Record  A collection of related elements (fields or attributes) of an entity  The name of a record is the whole structure name (e.g., student)  The names of fields (e.g., name, id,…)  student.name, student.id, student.age, …  Array of records (e.g., student[1].name, student[1].id, … student[2].name, student[2].id, …) 6

Data Structure: Linked List  “A collection of data in which each element contains the location of the next element.”  Consists of data and link  Data contain information to be processed  Link contains a pointer (address) that identifies the next element in the list.  The last element contains data only (null pointer) 7

File Structure  “An external collection of related data treated as a unit”  Used to store data permanently in a secondary storage device or auxiliary  Examples are a MS Word file and display of information on the screen  Sequential access (one record after another from the beginning to end) versus random access 8

Sequential Files  Sequential access method  Each record is accessed one after another from the beginning to end.  Master and transaction files for update  Cost saving (efficiency) and data security 9

Indexed Files  Random access method  Consists of a data file and its index  An index contains the key of the data file and the address (record number) of the corresponding record  An index is sorted based on the key values (attributes) of the data file  Find the desired key and retrieve its address, and then access the record. 10

Hashed Files  Random access method  Use a mathematical function for mapping a key to the address  User give a key  the hash function maps the key to the address  then passes to the OS  record is retrieved  No need to have an index  Direct, modulo division, digit extraction, and collision hashing 11

File Systems  Control how data are stored and read  Unix/Linux: ext2, ext3, ext4, and others  Mac: HFS, HFS Plus  MS Windows: FAT (File Allocation Table), FAT32, NTFS (New Technology File System) 12

Directories 1  A special type of file containing information about other files  A directory itself is a file  An index telling where files are located  Organized as a tree (hierarchical structure)  Each directory except the root directory has a parent directory. 13

Directories 2  Root directory (/)  Working directory (current directory)  Parent directory versus child directory  Absolute path versus relative path  /home/kucc625/www  kucc625/www (assuming /home as a working directory) 14

Binary Files  A collection of data stored in the internal format of the computer.  Use all 256 (8 bits) bit-string patterns  Data can be character, integer, floating- point numbers, and/or other type of data.  Object files, images, videos, sounds, and formatted text files (MS Word and Excel files) are binary files 15

Text Files  A sequence of lines and plain texts  A file of characters.  Each byte is written in 128 ASCII codes (MSB is 0 and remaining 7 bits are used)  Even a text file eventually stores data in 0’s and 1’s  Readable in text editors and many applications as well 16

ASCII Files  Text format containing ASCII characters  Depending on the delimiter (separating date items)  Free format (space delimited)  Comma delimited format or comma separated values (CSV)  Fixed format 17

Files for Specific Applications  Formatted for specific applications  MS Word (.doc &.docx) and Excel (.xls &.xlsx) have their own format.  Unlikely to be shared by multiple applications.  One application (program) and its specific data format.  One program-one data file? 18