cps6-111103Handout

cps6-111103Handout - "Hungry heart:The...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CompSci 6 Introduction to Computer Science November 3, 2011 Prof. Rodger Announcements • No Reading for next time • Assignment 5 coming out soon! • Today – More on dictionaries – Finish APT Problem: • Suppose we get data which is a list of strings, each string is the top three songs one student likes in the order 1,2,3. songs = ["Hey Jude:Let it be:Day Tripper", "Let it be:Drive my car:Hey Jude", "I want to hold your hand:Day Tripper:Help!", "Born to run:Thunder road:She's the one",
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "Hungry heart:The river:Born to run", "The river:Thunder road:Drive my car", "Angie:Start me up:Ruby Tuesday", "Born to run:Angie:Drive my car"] Problem: What type of dictionary should we build? Answer questions: Which is the most popular first place song? Which is the most popular song (unweighted)? Which is the most popular song weighted (3 points top song, 2 points 2cd song, 1 point last song)....
View Full Document

This document was uploaded on 01/17/2012.

Ask a homework question - tutors are online