I have browsed the other questions and found solutions as to how to do a deep copy of objects that contain references. I am specifically wanting to make a deep copy of a tree. Logically, each tree...
Type: Posts; User: gabie1121
I have browsed the other questions and found solutions as to how to do a deep copy of objects that contain references. I am specifically wanting to make a deep copy of a tree. Logically, each tree...
My objective is to execute quick sort ( i was told to convert the pseudocode from the Cormen book) using arrays of increasing sizes and find the average number of comparisons for each of those sizes...
My overall project is to create a tree and use Huffman coding to encode and decode a given file. I am at the point where I need to decode my file. To do this, i am having to step through my Huffman...
Wow, yeah that totally did it. Thanks! I'm glad it was that simple. I guess I was thinking of my array, like an arrayList, as being an object.
In one file, I save a TreeNode object, then an int, and then a byte array to a file named `huffmanTrial.huff`.
In another file I want to read in all three of those things and do work on them. I can...
Hi,
I have an assignment for my computer science 1 class I could really use some help on. Here's exactly what it says:
Assume you have a method isSubstring which checks if one word is a...
I finally figured it out. Had to nest two for loops!
I have an assignment that follows " Write a code segement using a for loop that, given a positive integer n, prints first n postive integers, such that each integer is preceded by n number of...