Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: Hamrick ; Forum: Computer Science and child forums
Forum: Computer Science Aug 21st, 2007
Replies: 2
Views: 2,481
Posted By Hamrick
Comparing letters depends on the relative value of the letters. But for character sets like ascii you say that A > Z, a > z, and Z > a. I'll attach a little program that can compare strings and tell...
Forum: Computer Science Aug 13th, 2007
Replies: 2
Views: 692
Posted By Hamrick
Lack of confidence in your algorithm is a serious flaw and you should make sure that it's correct. Do a quick test in your head with all permutations of three numbers.

{1,2,3}

s = 1
1 is not...
Forum: Computer Science Aug 2nd, 2007
Replies: 15
Views: 2,417
Posted By Hamrick
Probably because I don't know how to put it into perfect mathematical notation... Honestly, I have no idea what you're talking about.
Forum: Computer Science Aug 1st, 2007
Replies: 15
Views: 2,417
Posted By Hamrick
I can remove the unused precision if it bothers you. ;)
Forum: Computer Science Aug 1st, 2007
Replies: 15
Views: 2,417
Posted By Hamrick
x represents internal nodes, that's nodes with one or more children. y represents the rest of the nodes with no children, and they're called external nodes.

6
/ \
5 ...
Forum: Computer Science Aug 1st, 2007
Replies: 15
Views: 2,417
Posted By Hamrick
To traverse a binary tree you have to touch every node in the tree once. From that you infer that the time complexity is O(n). You can take it further by postulating that because the recursive...
Forum: Computer Science Jul 30th, 2007
Replies: 3
Views: 934
Posted By Hamrick
I don't think a program can do that except for the simplest and most obvious of bugs; the kind that compilers or semantic checkers already catch for you 100% of the time. Finding anything more...
Forum: Computer Science Jul 17th, 2007
Replies: 8
Views: 8,219
Posted By Hamrick
For a queue just think of stuff where something goes in one end and out the other in order. For a stack just think of stuff where something goes in one end and out the same end in order.
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC