cps6-111103

cps6-111103 - "Hungry heart:The river:Born to...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CompSci 6 Introduction to Computer Science November 3, 2011 Prof. Rodger
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements • No Reading for next time • Assignment 5 coming out soon! • Today – More on dictionaries – Finish APT
Background image of page 2
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 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
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

Page1 / 4

cps6-111103 - "Hungry heart:The river:Born to...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online