Note
0.0
(0)
Rate it
Take a practice test
Chat with Kai
undefined Flashcards
0 Cards
0.0
(0)
Explore Top Notes
Microbiology Quiz 9 (BIO 910)
Note
Studied by 15 people
5.0
(1)
Unit 4: Transoceanic Interconnections (c. 1450–c. 1750)
Note
Studied by 9 people
5.0
(2)
Of Tests and Testing
Note
Studied by 14 people
5.0
(1)
0.2: Pre-Colonial America
Note
Studied by 15 people
5.0
(2)
Forensics Study Guide Unit 1
Note
Studied by 17 people
5.0
(1)
The consumer revolution
Note
Studied by 20 people
5.0
(1)
Home
Data Structures & Algorithms
Data Structures & Algorithms
Data Structures
A way of storing data in a computer for efficient use.
Organizes data considering the items stored and their relationships.
Allows designing efficient algorithms for data manipulation.
Different data structures suit different applications.
Examples:
B-trees for databases.
Hash tables for compiler implementations.
Importance of Data Structures
Used in almost every program or software system.
Manages huge amounts of data efficiently.
Key to designing efficient algorithms.
Algorithms + Data Structures = Programs
Basic Types of Data Structures
Files
Lists
Arrays
Records
Trees
Tables
Algorithm
A formula or set of steps for solving a particular problem.
Must be unambiguous and have a clear stopping point.
Can be expressed in any language.
Algorithms are used every day.
Creating simple algorithms is a principal challenge in programming.
Properties of an Algorithm
Input: Accepts zero or more inputs.
Output: Produces at least one output.
Finiteness: Terminates after a finite number of steps.
Definiteness: Each step is unambiguous.
Effectiveness: Consists of basic, realizable instructions.
Generality: Works for a general set of inputs.
How to Represent Algorithms
Natural languages: Too verbose.
Formal programming languages: Too low level.
Pseudo-code: Natural language constructs modeled after programming languages.
Flowchart: Diagram representing an algorithm or process.
Algorithm Representation Examples
Natural language
Pseudo-code
Flowchart
Data Structures and Algorithms
Most algorithms operate on data collections, so define Collection Abstract Data Type (ADT)
Methods:
Constructor / Destructor
Add / Edit / Delete
Find
Sort
….
Note
0.0
(0)
Rate it
Take a practice test
Chat with Kai
undefined Flashcards
0 Cards
0.0
(0)
Explore Top Notes
Microbiology Quiz 9 (BIO 910)
Note
Studied by 15 people
5.0
(1)
Unit 4: Transoceanic Interconnections (c. 1450–c. 1750)
Note
Studied by 9 people
5.0
(2)
Of Tests and Testing
Note
Studied by 14 people
5.0
(1)
0.2: Pre-Colonial America
Note
Studied by 15 people
5.0
(2)
Forensics Study Guide Unit 1
Note
Studied by 17 people
5.0
(1)
The consumer revolution
Note
Studied by 20 people
5.0
(1)