MIDTERM REVIEWER Flashcards
It is the organization of data.
Data Structures
Raw, unorganized facts that need to be processed or stored by a computer.
Data
- Can be displayed in rows, columns, relational databases.
- Numbers, dates, String
- Estimated 20% of enterprise data
- Requires less storage.
- Easier to manage and protect with legacy solutions.
Structured Data
- Cannot be displayed in rows, columns, relational databases.
- Images,audio, video, word processing files, emails, spreadsheets
- Estimated 80% of enterprise data
- Requires more storage
- More difficult to manage and protect with legacy solutions.
Unstructured Data
Advantage: Quick insertions, very fast access if the index is known.
Disadvantage: Slow search, slow deletions, fixed size
Array
Advantage: Dynamic size, faster deletion than array, quick insertion.
Disadvantage: Slow search
Linked List
Advantage: Provide last-in, first out access
Disadvantage: Slow access to other items
Stack
Advantage: Provide first in, first out access
Disadvantage:Slow Access to other items.
Queue
Advantage: Quick search, insertion, and deletion ( if tree remains balanced)
Disadvantage: Deletion algorithm is complex
Binary Tree
Advantage: Fast insertion, deletion, access to largest item.
Disadvantage: Slow access to other items.
Heap
Advantage: Very fast access if key known, fast insertion.
Disadvantage: Slow deletion, access slow if key not known, inefficient memory usage.
Hash Table
Advantage: Models real-world situations
Disadvantage: Some algorithms are slow and complex
Graph
- A step by step procedure on how to solve a problem.
- Manipulate the data in the data structures in various ways.
Example : Step by step of how to cook a pancit canton.
Algorithm
Enumerate the Main Data Structure Operations
- Sort
- Insert
- Delete
- Search
ENUMERATE THE REAL APPLICATIONS OF DATA STRUCTURE
- Real-world data storage
- Operating Systems
- Graph Modeling
Personnel records, inventory records
Real-world data storage
Stacks and Queues to manage processes and resources
Operating Systems
Discovering network topologies, Social Network connections.
Graph Modeling
- A collection of related data and set of rules for organizing and accessing it.
- An arrangement of data in a computer’s memory or disk.
Example: arrays, linked lists, queues, binary trees, hash tables.
Data Structures
Manipulate the data in the data structures in various ways.
Algorithm
Why is it important to learn about data structure?
Efficiency: Faster code, less memory use.
Problem-solving: Right tools for the job.
Better code: Easier to read, maintain, and debug.
Job market: Essential for interviews and careers.
Foundation: Building block for other CS concepts
How will choosing which data structure to use help in creating efficient programs?
Time: Faster operations (search, insert, delete).
Space: Less memory consumption.
Flexibility: Adapt to changes easily.
A structure consisting of a fixed number of components with each component of the same type.
Arrays
Enumerate the Array Components
- Name;
- Data/ Component type;
- Indices of first and last component