DSALG Flashcards
(157 cards)
Name the 3 linear data structures
Array, Linked list, Hash table
Name all the hierarchical data strucutres
Binary Tree
Binary Search Tree
AVL Tree
Splay Tree
Heap
2-3 Tree
B Tree
Name the 3 graphical data structure algorithms
Tree traversal(Breadth first and Depth first search)
Shortest Path Trees( Dijkstra’s algorithm)
Spanning Trees(Prim and Kruskals algorithm)
What are the 2 types of arrays
Sorted and unsorted arrays
What are the special cases of arrays
Stacks ADT, Queue ADT, Priority queue
What are the special cases of linked lists
Double linked list
Circularly linked lists
Skip list
What is a doubly linked list
A linked list in which every node has a forward and a backward link
What is a circularly linked list
A SLL in which the last node contains the
reference to the first node in the SLL
What is a skip list
A probabilistic data structure, based on parallel linked lists, with an improved efficiency
What is a Hash table
A searching tool that uses hashing for the time-space trade off
What are the special cases for a B tree
B * Tree
B+ Tree
How is the heap structure applied
Priority Queue
Huffman coding
What is an algorithm
A set of instructions on how to complete a specific task
What are the different classifications of algorithms?
Brute force
Divide and Conquer
Backtracking
Greedy
What is a backtracking algorithm
Keep trying but when you a reach a point where things don’t work out you go back and try a different possibility
What is a greedy algorithm
An algorithm where a decision is made that is deemed good but no consideration is given to future consequences
What is a data structure
A way to store and organise data in order to facilitate access and modifications
What is a hierarchical data structure
A data structure where each node has a unique predecessor and many successors
What is a linear data structure
A data structure where each node has a unique predecessor and a unique successor
What is a graphical data structure
A data structure where each node has many predecessors and many successors
What is a set structure
No predecessor and no successor
What does ADT stand for
Abstract data type
What is an ADT
A collection of data and associated methods stored as a single module
Can data be accessed directly in an ADT
No data is accessed indirectly through its methods to access and modify