Tags:
tag this topic
create new tag
view all tags
---+Tree Lab: Word count ---++Learning Objective(s) 1. Learn to code a binary tree and a binary search tree 1. Improve understanding of cohesion and coupling 1. Improve skill for developing test cases for best, average, worst situations ---++Overview of the problem You need to do a word count on a text file. You must use a binary search tree to store the words. ---++Specifics * You may be case sensitive. * You can treat non characters and non white spaces as part of the word. * The filename should come from the command line (but this should be the very last thing you work on) ---++Design components * In your design decide if you will implement this with linked lists or an array. Justify your choice * Discuss possible best, worst, and average cases * Your tree should not know what is being stored in it. ---++Optional improvements * Make your code case insensitive. * Ignore non characters/non white spaces * Make the binary search tree an AVL tree
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2021-09-17
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback