Unformatted text preview: - Write to a fle every string you search For on a new line 4. Display to the screen how many tries it took to generate a string that was Found. 5. ±ree the list using the Function you wrote and any strings you are still using. Things to watch out for/Questions to ask yourself: 1. What do you do iF the string already exists in the linked list? 2. When is it appropriate to Free the strings which are allocated For the purpose oF insertion? 3. When is it appropriate to Free the strings which are allocated For the purpose oF searching? Hints: 1. Generate a random number between low and high : int rand_val = rand()%(high-low)+high; 2. Create a character numerically char ch = 'a' + num;...
View Full Document
- Spring '07
- C Programming, Randomness, Cumulative distribution function, Hardware random number generator, Array data type, random 3-character strings