Data Structures مرتضي صاحب الزماني.

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

Data Structures Static and Dynamic.
C and Data Structures Baojian Hua
Today’s Agenda  Stacks  Queues  Priority Queues CS2336: Computer Science II.
Data Structures: A Pseudocode Approach with C
Chapter 10: File-System Interface
CS 1114: Data Structures – Implementation: part 1 Prof. Graeme Bailey (notes modified from Noah Snavely, Spring 2009)
No homework this week Stage 2 starts next week. Code review Team with N members is assigned N submissions to review Discuss submissions within team Everyone.
Chapter 15 B External Methods – B-Trees. © 2004 Pearson Addison-Wesley. All rights reserved 15 B-2 B-Trees To organize the index file as an external search.
OS Fall’02 Memory Management Operating Systems Fall 2002.
Linked Lists list elements are stored, in memory, in an arbitrary order explicit information (called a link) is used to go from one element to the next.
Recap of Feb 27: Disk-Block Access and Buffer Management Major concepts in Disk-Block Access covered: –Disk-arm Scheduling –Non-volatile write buffers.
Linked Lists list elements are stored, in memory, in an arbitrary order explicit information (called a link) is used to go from one element to the next.
Dynamic Memory Allocation Questions answered in this lecture: When is a stack appropriate? When is a heap? What are best-fit, first-fit, worst-fit, and.
File System Implementation Chapter 12. File system Organization Application programs Application programs Logical file system Logical file system manages.
Chapter 6 Binary Trees. 6.1 Trees, Binary Trees, and Binary Search Trees Linked lists usually are more flexible than arrays, but it is difficult to use.
Storage allocation issues Prof. Ramin Zabih
CS4432: Database Systems II Record Representation 1.
File Organization Lecture 1
B + -Trees. Motivation An AVL tree with N nodes is an excellent data structure for searching, indexing, etc. The Big-Oh analysis shows that most operations.
Memory Management. Memory  Commemoration or Remembrance.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Data Structures and Algorithms Lecture 1 Instructor: Quratulain Date: 1 st Sep, 2009.
1 Advanced Memory Management Techniques  static vs. dynamic kernel memory allocation  resource map allocation  power-of-two free list allocation  buddy.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
CS 241 Discussion Section (11/17/2011). Outline Review of MP7 MP8 Overview Simple Code Examples (Bad before the Good) Theory behind MP8.
Dog Fouling – CFYA Services Craig Willows – Service Development Manager.
Subject Name : Data Structure Using C Title : Linked Lists
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
I MPLEMENTING FILES. Contiguous Allocation:  The simplest allocation scheme is to store each file as a contiguous run of disk blocks (a 50-KB file would.
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.
1 Data Organization Example 1: Heap storage management –Keep track of free chunks of memory Example 2: A simple text editor –Maintain a sequence of lines.
Lecture 4: Floodfill. Floodfill Overview First assume that there are no walls Give each cell a distance from the goal. The goal has distance 0. Repeat.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Elementary Data Structures Array Lists Array Lists Dale.
FILE ORGANIZATION.
Linked Lists. Introduction In linked list each item is embedded in a link Each item has two parts – Data – Pointer to the next item in the list Insert,
Simulated Pointers Limitations Of C++ Pointers May be used for internal data structures only. Data structure backup requires serialization and deserialization.
CS 241 Discussion Section (12/1/2011). Tradeoffs When do you: – Expand Increase total memory usage – Split Make smaller chunks (avoid internal fragmentation)
Lecture Topics: 12/1 File System Implementation –Space allocation –Free Space –Directory implementation –Caching Disk Scheduling File System/Disk Interaction.
Linked List. LINKED LIST Link is collection of similar type of elements. There are two ways of maintaining a list in memory. The first way is store the.
1 CSCE 520 Test 2 Info Indexing Modified from slides of Hector Garcia-Molina and Jeff Ullman.
Part III Storage Management
UNIT-II Topics to be covered Singly linked list Circular linked list
1 Data Organization Example 1: Heap storage management Maintain a sequence of free chunks of memory Find an appropriate chunk when allocation is requested.
DS.H.1 Hashing Chapter 5 Overview The General Idea Hash Functions Separate Chaining Open Addressing Rehashing Extendible Hashing Application Example: Geometric.
Cache Memory Yi-Ning Huang. Principle of Locality Principle of Locality A phenomenon that the recent used memory location is more likely to be used again.
Bin Packing First fit algorithm
Indexing and hashing.
Prepared by, Jesmin Akhter, Lecturer, IIT, JU
B+-Trees.
B+-Trees.
B+-Trees.
Lecture 22 Binary Search Trees Chapter 10 of textbook
External Methods Chapter 15 (continued)
Chapter 11: File System Implementation
Optimizing Malloc and Free
Simulated Pointers.
Arrays and Linked Lists
FILE ORGANIZATION.
Simulated Pointers.
Lists CSE 373 Data Structures.
Binding Times Binding is an association between two things Examples:
Operating System Chapter 7. Memory Management
Levels of Organization
File Organization.
Lists CSE 373 Data Structures.
Bin Packing First fit algorithm
Geographic Information Systems
Presentation transcript:

Data Structures مرتضي صاحب الزماني

Layout Representation مرتضي صاحب الزماني

Layout Representation مرتضي صاحب الزماني

Layout Representation Data Structures must be efficient i.t.o. time and space. مرتضي صاحب الزماني

Atomic Operations for Layout Editors مرتضي صاحب الزماني

Atomic Operations مرتضي صاحب الزماني

Atomic Operations مرتضي صاحب الزماني

Atomic Operations مرتضي صاحب الزماني

Data Structures for Layout مرتضي صاحب الزماني

Linked List Representation Space Complexity: O(n) n: Number of tiles. Disadvantage: Long search time Good for hierarchical specifications (limited number of modules) مرتضي صاحب الزماني

Example: Neighbor Finding y11 y12 y21 y22 R مرتضي صاحب الزماني

Bin-Based Representation Space Complexity: O(bn) مرتضي صاحب الزماني

Example: Neighbor Finding مرتضي صاحب الزماني

Bin-Based Representation Bin Size: If too small  too many bins  memory usage. many empty bins  memory waste. If too large  many blocks inside each bin Large lists  slow. مرتضي صاحب الزماني

Neighbor Pointers Space Complexity: O(n2) No explicit space representation. Difficult updating. مرتضي صاحب الزماني