Ruth Anderson UW CSE 160 Spring 2015

Slides:



Advertisements
Similar presentations
To Be or Not to Be: Suicide in Shakespeare By Ronjon Siler Tragedy.wikidot.com.
Advertisements

Space-Efficient Algorithms for Document Retrieval Veli Mäkinen University of Helsinki Joint work with Niko Välimäki.
DON’T FEAR SHAKESPEARE
Your Task: Closely read the passage from Hamlet and write a well-developed, text-based response of two to three paragraphs. In your response, identify.
William Shakespeare. The Globe Theatre Shakespeare became so successful that he, with the Burbages, founded his own theatre ares-
Dramatic Literary Elements. Drama Is meant to be seen or performed, not read. Drama becomes a play when it is acted out Contains elements similar to prose/novels.
Презентация учителя английского языка Сосниной Галины Владимировны.
By Giverny Forbes If mu- / -sic be / the food / of love, / play on.
 1 String and Data Processing. Sequential Processing Processing each element in a sequence for e in [1,2,3,4]: print e for c in “hello”: print c for.
“William Shakespeare – The Immortal Poet of Nature” 1Алексеева Н.А.
Getting Acquainted with Shakespeare Pay attention…!
Monologues vs. Soliloquies
Writers of the Renaissance A New Kind of Literature.
Hamlet Essay Some reminders. Overview  My expectations  Writing reminders  M.L.A.  Noodlebib  Easybib  Due dates and extra credit.
“To Be, or Not To Be” From Hamlet By: William Shakespeare 10/30  “To be, or not to be: that is the question:  Whether ‘tis nobler in the mind to suffer.
CSC 110 – Intro to Computing Lecture 4: Arithmetic in other bases & Encoding Data.
UW CSE 190p Section 8/2, Summer 2012 Dun-Yu Hsiao.
Design Exercise UW CSE 140 Winter Exercise Given a problem description, design a module to solve the problem 1) Specify a set of functions – For.
Beyond Lists: Other Data Structures CS303E: Elements of Computers and Programming.
CSS446 Spring 2014 Nan Wang.  Java Collection Framework ◦ Set ◦ Map 2.
The Hurdle of Analyzing Shakespeare’s Language Translation vs. Interpretation.
Hamlet test: 150 points I. 10 multiple choice: introductory notes on the historical era, theater, etc. II. 10 matching characters with their descriptions.
“To be or not to be, that is the question. Whether 'tis nobler in the mind to suffer the slings and arrows of outrageous fortune, or take arms against.
Design Exercise UW CSE 190p Summer 2012 download examples from the calendar.
Aim: Who was William Shakespeare?. Movies Based on Shakepeare Based on Othello Based on Twelfth Night Based on Taming of the Shrew Based on Romeo & Juliet.
Design Exercise UW CSE 160 Spring Exercise Given a problem description, design a module to solve the problem 1) Specify a set of functions – For.
Hamlet’s Worldview By Sophilyn Zhou. How weary, stale, flat, and unprofitable Seem to me all the uses of this world! Fie on’t! O fie! ’tis an unweeded.
To branch, or not to branch, that is the e-learning question With Dan Richards, Interactive Advantage Corp. To be, or not to be, that is the question:
{ Friday, October 15, 2015 Agenda: Bellringer: Word of the Week (new for Fridays) Introduction and Notes about the elements of drama Word of the Week:
14. DICTIONARIES AND SETS Rocky K. C. Chang 17 November 2014 (Based on from Charles Dierbach, Introduction to Computer Science Using Python and Punch and.
CPSC 171 Introduction to Computer Science Binary.
How to develop a program CSE 160 University of Washington 1.
AP LITERATURE AND COMPOSITION “IT’S A ‘TO BE OR NOT TO BE’ THURSDAY!” January 12, 2012 – Mr. Houghteling.
Vocabulary Size of Moby Dick. Algorithm 1.Read the text into Python (as a huge string) 2.Split the string into words 3.Remove duplicates 4.Count the size.
1 Process mapping template - Instructions The following two pages include simple templates for starting a process map –Process mapping shapes –Process.
Self-Aware American Comic of the Day. Literary Devices at work in Walden Alliteration: storm as the smooth reflecting surface Assonance: how far apart/
Chapter 21 Sets and Maps Jung Soo (Sue) Lim Cal State LA.
William Shakespeare-450 th Birthday celebration worldwide in 2014 W.Shakespeare often called the English national poet is widely considered the greatest.
Literary Conflict. Depending on how it is defined, there can be many different types of literary conflict. The same types of conflict are used in most.
‘Hamlet’ – Act III. First… Summarise Act III Act III Scene 1 Another soliloquy! Have a look at it and summarise.
How to develop a program
English Literature And its periods.
Hamlet To be, or not to be, that is the question:
Databases Chapter 16.
Data Structures: Lists
Permutations and Combinations
HAMLET ACT III QUIZ MS FRACASSI ENG4U.
AP Literature and Composition “It’s a ‘To be or not to be’ Tuesday!”
Translation Rhetorical Awareness and Language Use
Design Exercise UW CSE 140 Winter 2014.
An Intro to Reading Shakespeare
Collections Michael Ernst UW CSE 140.
Ruth Anderson UW CSE 160 Spring 2018
How to develop a program
Ruth Anderson UW CSE 160 Winter 2017
إعداد المشرفة التربوية نجلاء الجارد
Ms. Davis Honor’s British Literature January 9th (B) and 10th (A)
Ruth Anderson UW CSE 160 Winter 2017
How to develop a program
Poetic Devices and Literary Terms
6. Dictionaries and sets Rocky K. C. Chang 18 October 2018
OUR SCHOOL.
The Internet MIT 026B Winter 2002.
Algorithmic complexity: Speed of algorithms
Ruth Anderson UW CSE 160 Spring 2018
Why do we read Shakespeare?
Day 5 Ethos Review Cesar Chavez Evaluating Sources' Ethos
RR-TAG (802.18) Liaison Report
How to develop a program
Ruth Anderson UW CSE 160 Winter 2016
Presentation transcript:

Ruth Anderson UW CSE 160 Spring 2015 Collections Ruth Anderson UW CSE 160 Spring 2015

Count the words in a document Assume you start with a list of words: "to be or not to be that is the question whether tis nobler in the mind to suffer the slings and arrows of outrageous fortune or to take arms against a sea of troubles and by opposing end them to die to sleep no more".split() This problem is ambiguous: the number of words with or without repetition? Before you start to design, clarify what the problem is. Do the design on paper and pencil (think of a list on a piece of paper), describing the algorithm in English, before proceeding to Python data structures. A good programmer never dives straight into code. Split() Converts the string into a list of words.

Count the occurrences of each word (make a histogram) Most common words on Twitter

Count the number of unique words

A collection groups similar things List: ordered Set: unordered, no duplicates Tuple: unmodifiable list Dictionary: maps from values to values Example: word → definition 95% or more of all data structures you ever use will be one of these, or a combination of these

Data Structures A data structure is way of organizing data Each data structure makes certain operations convenient or efficient Each data structure makes certain operations inconvenient or inefficient Example: What operations are efficient with: a file cabinet sorted by date? a shoe box?