



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Activation Record/Frame - ANSWhen a method is called, the programs run- time environment creates an objected called the activation record/frame Acyclic - ANSA graph that has no cycles. Balanced binary trees. - ANSWhen each node in a binary tree has two subtrees whose heights are exactly the same. Binary Operator - ANSWhen an operator has two operands ie: a + b Binary Search - ANSWhen you choose one half of a sorted array that can not contain the value you are search for in order to rid of a large portion of the array and increase search efficiency. Look at middle value every time and decided on which side of new array value is to be found. Binary Tree - ANSWhen each node has at most two children. Breadth-First Traversal - ANSFollows a path that explores an entire level before moving to the next level. Bucket - ANSA second resolution to collisions, the bucket alters the structure of the hashtable so that each location can represent more than one value. Resolving collisions by using buckets that are linked chains is called separate chaining.
Circular Array - ANSWhen the queue reaches the end of the array, we can added entries to the queue at the beginning of the array where there are empty slots. Circular Linked Chain - ANSWhen the last node references the first node so no node contains null in its next field. Clustering - ANSCollisions that are resolved with linear probing cause groups of consecutive locations in the hash table to be occupied. Each group is called a cluster and the phenomenon is known as primary clustering. Complete Graph - ANSHas an edge between every pair of distinct vertices. Connected Graph - ANSA graph that has a path between between every pair of distinct values. Cycle (graph) - ANSA path that begins and ends at the same vertex Depth-First Traversal - ANSThis kind of traversal fully explores one subtree before exploring another. Traversal follows a path that descends the levels of a tree as deeply as possible until it reaches a leaf. Directed Graph - ANSWhen the edges have direction the graph is directed. Also called a diagraph. Graphs without directed edges are undirected. Double ended queue - ANSA queue that allows you to add, remove, or retrieve entires at both sides (front and back) of the queue. Doubly Linked Chain - ANSWhen the nodes can reference the previous node as well as the next node in a chain.
interior node / nonleaf - ANSA node with children. Also a parent. Java Stack/Program Stack - ANSAt the time the program is called, the activation record is pushed onto a stack called the Java Stack or the Program Stack Leaf - ANSA node with no children. Length of a path - ANSThe number of edges that composes it. Level-Order Traversal - ANSBegins at the root and visits nodes one level at a time. Within a level, it visits nodes from left to right. An example of breadth- first traversal. Linear Linked Chain - ANSThe last node would contain null. Linear Probing - ANSUsed to solve collisions. Maxheap - ANSHere, the object in a node is grater than or equal to its descendant objects. Minheap - ANSHere, the relation is less than or equal to. Perfect Hash Function - ANSExample: Search Keys range from 555-0000 to 555-9999, so the hash function will produce indices from 0-9999. If the array has 10,000 elements, each telephone number will correspond to one unique element of the hashTable.
Postfix Expression - ANSWhen the operator is after the expression Postorder Traversal - ANSVisits the root of a binary tree after visiting the nodes in the roots subtrees. Order: Visit all the nodes in the roots left subtree. Visit all the nodes in the roots right subtree. Visit the root. Prefix Expression - ANSWhen the operator is before the expression. preorder traversal - ANSWhen you visit the root before we visit the roots subtrees. We then visit all the nodes in the roosts left subtree before we visit the nodes in the right subtree. Example of depth-first traversal. Priority Queue - ANSA queue that organizes objects according to their priorities. Probing - ANSLocating an open location in the hash table. Program Counter - ANSWhen a program executes, a special location called the program counter references the current instruction. Queue - ANSOrganizes entries according to the order in which they were added. First in - First out. Sequential Search - ANSUse to search a chain of linked nodes. When used with array, objects must have a defined .equals method. Spares/Dense - ANSSparse if it has few edges. Dense if it has many edges. Stack - ANSOrganizes its entries according to the order in which they were added. Last In - First Out