Docsity

Latest Data Structure and Algorithm Update, Exams of Data Structures and Algorithms

Toggle sidebar
bg1
Latest Data Structure and Algorithm
Update
Algorithm - ANSA computable set of steps to achieve a desired result.
Array - ANSIn programming, a list of data values, all of the same type, any
element of which can be referenced by an expression consisting of the array
name followed by an indexing expression. Arrays are part of the
fundamentals of data structures, which, in turn, are a major fundamental of
computer programming
Binary Search Tree - ANSA data structure with in which every node refers to a
left subtree and a right subtree such that all values in the left subtree are
smaller than the value in the node and all elements in the right subtree are
greater than (or equal to) the value in the node. The top node is called the
root. The nodes with no children (left and right subtrees empty) are called
leaves.
Binary Tree - ANSA specific type of tree data structure in which each node
has at most two subtrees, one left and one right. Binary trees are often used
for sorting information; each node of the binary search tree contains a key,
with values less than that key added to left subtree and values greater than
that key added to the right subtree.
Data Structure - ANSThe term data structure refers to the way data is
organized for use within a program. Correct organization of data can lead to
simpler and more efficient algorithms. Common data structures are linked-
lists, stacks, queues and trees.
FIFO - ANSFirst in first out is a policy that items are processed in order of
arrival. A QUEUE implements this.
pf3
pf4
pf5

Partial preview of the text

Download Latest Data Structure and Algorithm Update and more Exams Data Structures and Algorithms in PDF only on Docsity!

Latest Data Structure and Algorithm

Update

Algorithm - ANSA computable set of steps to achieve a desired result. Array - ANSIn programming, a list of data values, all of the same type, any element of which can be referenced by an expression consisting of the array name followed by an indexing expression. Arrays are part of the fundamentals of data structures, which, in turn, are a major fundamental of computer programming Binary Search Tree - ANSA data structure with in which every node refers to a left subtree and a right subtree such that all values in the left subtree are smaller than the value in the node and all elements in the right subtree are greater than (or equal to) the value in the node. The top node is called the root. The nodes with no children (left and right subtrees empty) are called leaves. Binary Tree - ANSA specific type of tree data structure in which each node has at most two subtrees, one left and one right. Binary trees are often used for sorting information; each node of the binary search tree contains a key, with values less than that key added to left subtree and values greater than that key added to the right subtree. Data Structure - ANSThe term data structure refers to the way data is organized for use within a program. Correct organization of data can lead to simpler and more efficient algorithms. Common data structures are linked- lists, stacks, queues and trees. FIFO - ANSFirst in first out is a policy that items are processed in order of arrival. A QUEUE implements this.

Hash Table - ANSA dictionary in which keys are mapped to array positions by a hash function. Having more than one key map to the same position is called a collision. There are many ways to resolve collisions, but they may be divided into open addressing, in which all elements are kept within the table, and chaining, in which additional data structures are used. Heap - ANSA complete tree where every node has a key more extreme (greater or less) than or equal to the key of its parent. Usually understood to be a binary heap. Good for: priority queues In-order Traversal - ANSProcess all nodes of a tree by recursively processing the left subtree, then processing the root, and finally the right subtree. Infix Notation - ANSNotation in which the operator separates its operands. E.g. (a + b) * c. Infix notation requires the use of brackets to specify the order of evaluation, unlike either prefix or postfix notations. Insertion Sort - ANSSort by repeatedly taking the next item and inserting it into the final data structure in its proper order with respect to items already inserted. Level-order Traversal - ANSProcess all nodes of a tree by depth: first the root, then the children of the root, etc. LIFO - ANSLast in first out is a policy that the most recently arrived item is processed first. A STACK implements this.

Queue - ANSA data structure with first-in first-out behavior, supporting the operations enqueue (to insert) and dequeue (to remove) Quicksort - ANSAn in-place sort algorithm that uses the divide and conquer paradigm. It picks an element from the array (the pivot), partitions the remaining elements into those greater than and less than this pivot, and recursively sorts the partitions Recursion - ANSAn algorithmic technique where a function, in order to accomplish a task, calls itself with some part of the task. Selection Sort - ANSA sort algorithm that repeatedly looks through remaining items to find the least one and moving it to its final location. The run time is (n2), where n is the number of comparisons. The number of swaps is O(n). Singly Linked List - ANSA data structure in which a list of nodes or elements of a data structure connected by pointers. A singly linked list has one pointer in each node pointing to the next node in the list. Sort - ANSArrange items in a predetermined order. There are dozens of algorithms, the choice of which depends on factors such as the number of items relative to working memory, knowledge of the orderliness of the items or the range of the keys, the cost of comparing keys vs. the cost of moving items, etc. Stack - ANSA data structure with last-in first-out behavior, supporting the operations push (to insert) and pop (to remove) Start symbol - ANSThe nonterminal symbol that stands for a complete valid utterance in the language being parsed. The start symbol is usually listed as the first nonterminal symbol in a language specification.

Symbol table - ANSA data structure where symbol names and associated data are stored during parsing to allow for recognition and use of existing information in repeated uses of a symbol. Tree Traversal - ANSA technique for processing the nodes