This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: One way to solve Create a list of unique first names Create a list of lists of last names that are associated with each first name Example two lists Susan Jackie Jack Eric Mary [ Smith,Brandt,Rodger,Crackers] [ Long, Johnson] [ White,Rodger,Velios] [ Long, Lund] [ Frost] 1 2 3 4 5 1 2 3 4 5 Unique First names Corresponding Last names Now can we solve the problem? Compute those two lists that are associated with each other List of unique first names List of corresponding last names Compute the max list of last names Now easy to print the answer. Expanding the Problem Suppose we want to read from multiple data files names1.txt, names2.txt, names3.txt...
View Full Document
- Fall '09