Ask Data Structure Expert

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?

Data Structure, Computer Science

  • Category:- Data Structure
  • Reference No.:- M9905542
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Data Structure

Data Communication Delivering Information anywhere

Topic: Data Communication Delivering Information anywhere. Write a 9-12 pages paper in which you: Present an overview of the origin and history of the concept. Describe the current use of and attitude toward the concept. ...

Problem regarding the management program

Problem: Looks like its just adding a save and load feature to the same file you sent me for python 3.5 Until now, you have had to leave your team management program running on your computer indefinitely since you did no ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As