Definitions and discussion on best-average-worst case

Assignment Help Data Structure & Algorithms
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?

Reference no: EM13326243

Questions Cloud

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

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Possible external-memory map implementation

Another possible external-memory map implementation is to use a skip list, but to collect consecutive groups of  O ( B ) nodes, in individual blocks, on any level in the skip list

  Different applications of data structure

What are the different applications of Data Structure

  Advantage of fast running time of insertion sort

Running time of quicksort can be enhanced in practice by taking advantage of fast running time of insertion sort when its input is "nearly" sorted.

  Write a method that finds the average age of the students

Write a method that finds the average age of the students stored in the data structure and some Java code that could be used in a test program to display the value returned by the method on the console or command prompt.

  Write program to do operaretions of stack-push-pop-peek

Write down the program which does the basic stack operations: Make the stack. Push element into the stack. Pop element from the stack.

  Conceptual model entity relationship diagram

Assume you are asked you to create a new entity-relationship diagram for a corporation for a customized shipment tracking system.

  Making visual studio.net web application

Make a Visual Studio.NET 2005 web application with 2-aspx forms. Add a Menu control and a Label control to form. Populate the Menu control with data stored in the "Font" column and show your name in the Label control.

  Cuckoo hashing

Using Cuckoo hashing, hash the following keys using the (h1,h2) pairs shown. A: 2,0 B: 0,0 C: 4,1 D: 0,1 E: 2,3 Using Hopscotch hashing with a max hop of 4, hash the following keys. A: 6 B: 7 C: 9 D: 7 E: 6 F: 7 G: 8

  Use separate chaining to store the

Use separate chaining to store the following keys. Consider that each letter is a number corresponding to the sequence of English alphabets. That is, A->1,

  Use a circular linked list to implement the queue

use a circular linked list to implement the queue data structure as described in java

  Analyzing certain software properties affects

Describe how the lack of metrics for analyzing certain software properties affects the software engineering discipline.

  Determine the transmission rate

Assume two TCP connections are available over some bottleneck link of rate R bps. Both connections have a huge document to send in the similar direction over the bottleneck link

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd