Reference no: EM13326243
Definitions and discussion (0-complexity of algorithms discussed: best-average-worst case, doubly linked list, trees, binary trees, binary search trees, AVL, and b-tree. Basic concepts such as complete trees and basic terms such as children, keys, height, should be known. You should be able to identify and create drawings of all such trees and concepts as well.
Review resources
- Handouts / class notes
- Assigned readings in our textbook since Test 1:
- Operator overloading
- Templates [for functions, for classes]
- Pointers and dynamic allocation:
- Linked lists and doubly linked lists:
- Trees :
- b-trees:
- Programming assignments
- Terminology, discussion points, advantages/disadvantages, average/best/worst cases, and practical applications.
Things to be able to code: Linked List: add to front, to middle (as in sorted), or to end, delete from first, from last, or one in the middle, traverse the list to do anything desired to each element.
Binary Search Tree: add a node (in correct location), delete an arbitrary node, delete the entire tree (the proper way), traverse the tree to process the node values in some desired order or in reverse order (can you say "recursion"), copying a tree, Use of C++ default constructor, initializer lists, copy constructor, overloaded assignment operator, destructors.
Algorithms to be able to "show" the use of: add to an AVL tree (any one of 4 cases if imbalance occurs), add or remove an item from a b-tree, conversion of general multi-way trees to first child/next sibling trees.
Terms to be able to define and explain : garbage, dangling reference, scope, lifetime, 3 storage classes (automatic, static and dynamic), pointers, & address-of operator, when to use *& in a parameter list, new, delete, NULL, friend, public, private, p->x notation, (*p).x notation, doubly linked list, stack, queue, tree, binary tree, first child/next sibling tree, expression tree, complete tree (and node densities of these!), AVL tree, b-tree, file data structures (as opposed to main memory data structures), traversals (in-order (e.g. LNR) , pre-order (e.g. NLR), post-order (e.g., LRN)), iterative level-order traversals (with queue) - this is a breadth-first traversal or tree! Complexity of various algorithms to manipulate stacks, queues, linked lists, and trees (such as add, remove, find, etc.); C++ objects on stack or heap, default constructor, abstractions and support for them (declarations and definitions), use of arrays versus linked list versus BST to implement an abstractions of a "list" - comparison of algorithm complexities? Use of C++ templates: how?
What is the potential difference between the plates
: The plates of a parallel-plate capacitor are 2.50mm apart, and each carries a charge of magnitude 85.0nC. What is the potential difference between the plates
|
What is diameter of bubble before it reaches water support
: An air bubble of .3 inch diameter is released from the regulator of a scuba diver 100ft below the waters surface. The water temp is 85 degree's F. What is the diameter of the bubble before it reaches the waters surface.
|
How would you calculate the angle the velocity vector
: A helicopter is flying in a straight line over a level field at a constant speed of 5.4 m/s, How would you calculate the angle the velocity vector makes with the ground at the instant before impact
|
Determine distance form the exterior face of the interior
: The distance l, which is the distance between the outside face of the exterior support at the left-hand end of the beam and the center of the interior support at the right-hand end, is 30ft; the width of the exterior support at the left is 16in.
|
Definitions and discussion on best-average-worst case
: Definitions and discussion (0-complexity of algorithms discussed: best-average-worst case, doubly linked list, trees, binary trees, binary search trees, AVL, and b-tree.
|
What is the initial velocity of the mass
: A 2kg mass is loaded into a spring cannon. The cannons spring has a constant k=4000N/m and the spring is compressed 0.8m. The mass is initially at rest. what is the initial velocity of the mass
|
What is the ration of energy before to energy after
: At the top of a 30m hill is a 5kg mass. It is loaded into a spring cannon. What is the ration of Energy before/Energy after
|
What is their distance of closest approach
: A proton and an alpha particle (q = +2e, m = 4 u) are fired directly toward each other from far away, each with an initial speed of 0.012c. What is their distance of closest approach
|
Express mass moment of inertia of solid with respect to x
: The area shown is revolved about the x axis to form a homogeneous solid of revolution of mass m. Using direct integration, express the mass moment of inertia of the solid with respect to the x axis in terms of m and h
|