CSSE221: Software Dev. Honors Day 15 Announcements Announcements Pass in UML for Cars, Trucks, Trains Pass in UML for Cars, Trucks, Trains Homework 5 late.

Slides:



Advertisements
Similar presentations
Cpt S 122 – Data Structures Course Introduction
Advertisements

CSSE221: Software Dev. Honors Day 12 Announcements Announcements No baby yet… No baby yet… Fifteen done. Fifteen done. Please read Class Announcements.
COMS W1004 Introduction to Computer Science June 15, 2009.
CSSE221: Software Dev. Honors Day 10 Announcements Announcements Fifteen due Monday 11:59 pm. Monday will be a workday. Fifteen due Monday 11:59 pm. Monday.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
CSSE221: Software Dev. Honors Day 16 Announcements Announcements Markov due Wednesday 11:59 pm Markov due Wednesday 11:59 pm Homework 6 due next Tuesday,
CSSE221: Software Dev. Honors Day 4 Pass in Runtime Assignment now to assistants Pass in Runtime Assignment now to assistants Announcements Announcements.
CSSE221: Software Dev. Honors Day 30 Announcements Announcements Minor in CS? Minor in CS? New test driver code available for both the basic and enhanced.
CSSE221: Software Dev. Honors Day 25 Announcements: Announcements: Now returning programming mini-exam feedback, HW7, and some capsule quizzes. Now returning.
CSSE221: Software Dev. Honors Day 2 Announcements Announcements Homework due now Homework due now Any problems committing JavaEyes to Subversion? Any problems.
CSSE221: Software Dev. Honors Day 8 Announcements Announcements HW3 due now, solutions will be posted. HW3 due now, solutions will be posted. Questions.
CSSE221: Software Dev. Honors Day 5 Announcements Announcements Homework 2 written portion due now Homework 2 written portion due now You survived the.
CSSE221: Software Dev. Honors Day 13 Announcements Announcements Contractions throughout the night… Contractions throughout the night… Late day assignments.
CS61C Review Midterm Spring Five Elements of a Computer Control Datapath Memory Input Output.
CS 410 Applied Algorithms Applied Algorithms Lecture #1 Introduction, class information, first problems.
CSSE221: Software Dev. Honors Day 23 Announcements: Announcements: Pass in yesterday’s capsule quiz Pass in yesterday’s capsule quiz Homework 7 electronic.
CSSE221: Software Dev. Honors Day 28 Announcements Announcements Simulation grades coming back Simulation grades coming back All C Projects due Friday.
CSSE221: Software Dev. Honors Day 7 Announcements Announcements HW2 and inheritance quiz returned now. HW2 and inheritance quiz returned now. Solutions.
Query Optimization 3 Cost Estimation R&G, Chapters 12, 13, 14 Lecture 15.
CS503: Tenth Lecture, Fall 2008 Review Michael Barnathan.
CSSE221: Software Dev. Honors Day 20 Announcements Announcements Homework 7 due beginning of next class. Homework 7 due beginning of next class. 6 short.
CSSE221: Software Dev. Honors Day 3 Announcements Announcements Should get in habit of checking in BigRational code as you go Should get in habit of checking.
CSSE221: Software Dev. Honors Day 11 Pass in HW4 now Pass in HW4 now Fifteen due 11:59pm Fifteen due 11:59pm Announcements Announcements Questions on Fifteen?
CSSE221: Software Dev. Honors Day 9 Announcements Announcements HW3 passed back, follow link from HW3 to its solution. HW3 passed back, follow link from.
COMS S1007 Object-Oriented Programming and Design in Java July 31, 2008.
EE 220 (Data Structures and Analysis of Algorithms) Instructor: Saswati Sarkar T.A. Prasanna Chaporkar, Programming.
CSSE221: Software Dev. Honors Day 14 Announcements Announcements Pass in Homework 5 now Pass in Homework 5 now Questions on Cars, Trucks, Trains? Questions.
CSSE221: Software Dev. Honors Day 18 Announcements Announcements Markov, some capsules coming back Markov, some capsules coming back Due this week: Due.
CS 206 Introduction to Computer Science II 01 / 23 / 2009 Instructor: Michael Eckmann.
Advanced Topics in Algorithms and Data Structures 1 Two parallel list ranking algorithms An O (log n ) time and O ( n log n ) work list ranking algorithm.
CSSE221: Software Dev. Honors Day 17 Announcements Announcements Fifteen and CarsTrucksTrains coming back Fifteen and CarsTrucksTrains coming back Note:
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
COMP 151: Computer Programming II Spring Course Topics Review of Java and basics of software engineering (3 classes. Chapters 1 and 2) Recursion.
1 CSE 2341 Object Oriented Programming with C++ Note Set #1.
CSC 113 Java Programming II
Data Structures Lecture 1: Introduction Azhar Maqsood NUST Institute of Information Technology (NIIT)
CSC172 INTRO PEPPER. COURSE GOALS Strong Java programmer Thorough code documentor Test driven programming Think in terms of objects Data structures –
Input and output (IO) systems Last week we considered the memory management layer of the operating system. This week we will look at another layer of the.
COMP 175 | COMPUTER GRAPHICS Remco Chang1/ Introduction Lecture 01: Introduction COMP 175: Computer Graphics January 15, 2015.
ICS 102 Computer Programming University of Hail College of Computer Science & Engineering Computer Science and Software Engineering Department.
Comp 248 Introduction to Programming Chapter 2 - Console Input & Output Dr. Aiman Hanna Department of Computer Science & Software Engineering Concordia.
Java Collections An Introduction to Abstract Data Types, Data Structures, and Algorithms David A Watt and Deryck F Brown © 2001, D.A. Watt and D.F. Brown.
BUILDING JAVA PROGRAMS CHAPTER 7 Arrays. Exam #2: Chapters 1-6 Thursday Dec. 4th.
CS61B L02 Using Objects (1)Garcia / Yelick Fall 2003 © UCB Kathy Yelick Handout for today: These lecture notes Computer Science 61B Lecture 2 – Using Objects.
Computer Science 102 Data Structures and Algorithms CSCI-UA.0102 Fall 2012 Lecture 1: administrative details Professor: Evan Korth New York University.
CS 206 Introduction to Computer Science II 09 / 10 / 2009 Instructor: Michael Eckmann.
Welcome to Mrs. Raines’ Algebra I Class! Conference period: 2 nd period Tutoring: Tuesday AM 6:45-7:15.
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
File Input/Output. 2Java Programming: From Problem Analysis to Program Design, 3e File Input/Output File: area in secondary storage used to hold information.
Building java programs chapter 6
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
Advanced File Processing NOVEMBER 21 ST, Objectives Write text output to a file. Ensure that a file can be read before reading it in your program.
Faculty Purpose of CS 100 Prepare to live in an information world Prepare for more training in computing NOT - to learn to program (CS 142) NOT - to.
Multimedia Games Development COM429 Demo and presentation Week 12 Assignment 3.
3 Data. Software And Data Data Data element – a single, meaningful unit of data. Name Social Security Number Data structure – a set of related data elements.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Course Introduction.
1 IDLOOPC1998. Object-Oriented Programming Using C++ CLASS 1.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2002 Sections Ms. Susan Mitchell.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2001 Sections Ms. Susan Mitchell.
ME 221Exam 1 Review1 ME 221 Statics Exam #1 Review.
Data Structures and Algorithms in Java AlaaEddin 2012.
Introduction to Momentum Monday, November 30, 2015.
Scanner as an iterator Several classes in the Java standard class library Are iterators Actually, the Scanner class is an iterator  The hasNext returns.
COMP 110: Spring Announcements Program 5 Milestone 1 was due today Program 4 has been graded.
Dictionaries and File I/O George Mason University.
Text File Input/Output
Text File Input/Output
CMPT 238 Data Structures Instructor: Tina Tian.
Unit-2 Objects and Classes
CMPT 238 Data Structures Instructor: Tina Tian.
Presentation transcript:

CSSE221: Software Dev. Honors Day 15 Announcements Announcements Pass in UML for Cars, Trucks, Trains Pass in UML for Cars, Trucks, Trains Homework 5 late day? Pass in now Homework 5 late day? Pass in now Better to defer CSSE230 until Spring Better to defer CSSE230 until Spring Exam 1 next class: if you qualify for extra time, talk to me later this class. Exam 1 next class: if you qualify for extra time, talk to me later this class. How are the capsule demos and prep going? How are the capsule demos and prep going? What’s working? What’s working? What do you plan to do differently next time? What do you plan to do differently next time? Yesterday’s groups will get grade later this week. Yesterday’s groups will get grade later this week.

This week: Markov Monday: Monday: Stacks and Queues Stacks and Queues Sets, Maps, and PriorityQueues Sets, Maps, and PriorityQueues Tuesday: Tuesday: Some pros and cons of various data structures Some pros and cons of various data structures Brief example of file I/O Brief example of file I/O Introduction to Markov, a cool statistical text program with lots of data structures Introduction to Markov, a cool statistical text program with lots of data structures Thursday: Thursday: Exam 1 Exam 1

Questions on Exam 1?

Demo Wrap up of Sets, Maps, and PriQueues Wrap up of Sets, Maps, and PriQueues By the way, which of the data structures that we discussed yesterday could be called an associative array? By the way, which of the data structures that we discussed yesterday could be called an associative array?

Markov Teams bennetrn-beltonj1 fishmad-sullivja skilessa-speyerea crockeea-morrisps johnsoad-priestjs lundgrpb-smithny leveyjr-wentztj bennindp-mcginnda clutecc-dovalojd gatesds-millerbe heinma1-hulettbh johnsoac-rubinza kruthar-richarme behlinmc-eckertwm mosttw-reillytm nibertjw-stokesej bennetdj Repos is csse If solo, use your personal repos. Find your partner

Simple File I/O Key concepts: Key concepts: File objects and exceptions: File objects and exceptions: new File(“fileName”) new File(“fileName”) Output: construct a PrintWriter from that file, and use it in place of System.out) Output: construct a PrintWriter from that file, and use it in place of System.out) Input: construct a Scanner from that file and use it like you would getting keyboard input Input: construct a Scanner from that file and use it like you would getting keyboard input Demo: SimpleFileIODemo Demo: SimpleFileIODemo

Use other techniques for reading binary files Data is more compact than text Data is more compact than text.read(),.write() methods.read(),.write() methods Maybe we’ll study later? Maybe we’ll study later?

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Processing: Gather word pattern statistics Store them in an appropriate data structure Output: a text file with many of the same properties as the original file Output: a text file with many of the same properties as the original file Full-justified, of course Full-justified, of course

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Statistics: NONWORDthe the skunk (4), stump (4) skunk jumped, said, stunk, the jumped over (2) over the (2) stump jumped, said, stunk, the said the (2) stunk and, NONWORD andthe

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Statistics: NONWORD the skunk jumped over stump said stunk and

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Statistics: NONWORDthe the skunk (4), stump (4) skunk jumped, said, stunk, the jumped over (2) over the (2) stump jumped, said, stunk, the said the (2) stunk and, NONWORD andthe

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Statistics (n=2): NW NW NW the the skunk skunk jumped jumped over over the the stump …

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Statistics (n=2): NW NW NW the the skunk skunk jumped jumped over over the the stump …

Markov Input: a text file Input: a text file the skunk jumped over the stump the stump jumped over the skunk the skunk said the stump stunk and the stump said the skunk stunk Statistics (n=2): NW NW the NW the skunk the skunk jumped, said, stunk, the skunk jumped … jumped over over the the stump …

Output n=1: n=1: the skunk the skunk jumped over the skunk stunk the skunk stunk n=2: the skunk said the stump stunk and the stump jumped over the skunk jumped over the skunk stunk Note: it’s also possible to hit the max before you hit the last nonword.

Data structures For the prefixes? For the set of suffices? To relate them? Statistics (n=2): NW NW NW the the skunk skunk jumped jumped over over the the stump …

Full Justification Do this step LAST Do this step LAST Output needs to be full-justified. Output needs to be full-justified. Required to use lists (array and linked) to hold the output line and modify it before you print it Required to use lists (array and linked) to hold the output line and modify it before you print it