Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cse332-19au
p2
Commits
001f3262
Commit
001f3262
authored
7 years ago
by
Ruth Anderson
Browse files
Options
Downloads
Patches
Plain Diff
Update WriteUp.md
parent
d6c1df04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/p2/writeup/WriteUp.md
+5
-4
5 additions, 4 deletions
src/p2/writeup/WriteUp.md
with
5 additions
and
4 deletions
src/p2/writeup/WriteUp.md
+
5
−
4
View file @
001f3262
...
...
@@ -37,21 +37,22 @@ Throughout p1 and p2, you have written (or used) several distinct implementation
### BST vs. AVLTree ###
Construct input files for BST and AVLTree to demonstrate that an AVL Tree is asymptotically better
than a Binary Search Tree. To do this, we expect you to show trends. You might consider fitting a curve to
Construct inputs for BST and AVLTree to demonstrate that an AVL Tree is asymptotically better
than a Binary Search Tree. Comparing the worst case for each structure is fine here.
To do this, we expect you to show trends. You might consider fitting a curve to
your results. Explain your intuition on why your results are what they are.
<pre>
TODO
</pre>
### ChainingHashTable ###
Your ChainingHashTable should take as an argument to its constructor the type of "chains" it uses. Determine
which type of chain is (on average) best: an MTFList, a BST, or an AVL Tree. Explain your intuition on why
which type of chain is (on average
, not worst case
) best: an MTFList, a BST, or an AVL Tree. Explain your intuition on why
the answer you got makes sense (or doesn't!).
<pre>
TODO
</pre>
### Hash Functions ###
Write a new hash function (it doesn't have to be any good, but remember to include the code in your repository).
Compare the runtime of your ChainingHashTable when the hash function is varied. How big of a difference can the
hash function make? (You should keep all other inputs (e.g., the chain type) constant.) Explain your intuition on
hash function make
(on average, not worst case)
? (You should keep all other inputs (e.g., the chain type) constant.) Explain your intuition on
why your results are what they are.
<pre>
TODO
</pre>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment