Cornell University is a private university located in Ithaca, New York, USA, and a member of the Ivy League.
CS100A, Fall 1997
CS100A, Fall 1997
Lecture 22, Tuesday 18 November
Introduction To C
Goal:
Acquire a reading knowledge of basic C.
Concepts:
Basic C control structures, data, I/O
Program organization
Pointers and parameters
Reference:
The standard reference is The C Programming Language by Kernighan & Ritchie (2nd ed, 1988). But this is written for experienced programmers and can be quite terse for beginners.
|
|
|
|
|
* CS1110 7 Sept 2010 Customizing a class Quote for the day:
I have traveled the length and
breadth of this country and talked with the best people, and I can assure you that data processing is a fad that won't last out the year.
—Editor in charge of business books for Prentice Hall, 1957 Reading for this lecture: Sections 1.4, (p. 41); 13.3.1 (p. 376).
Read all “style notes” and referenced PLive lectures (activities). Summary of lectures: On www.cs.cornell.edu/courses/cs1110/2010fa, click on “Lecture summaries” Reading for next lecture:
Fields; getter & setter methods. Secs 1.4.2 (p. 45) & 3.1 (pp. 105–110 only)
Constructors. Sec. 3.1.3 (p. 110–112)
Testing. App. I.2.4 (p. 486)
|
|
|
|
|
* CS1110 Thursday, 16 February 2010 Discussion of Methods: Executing method calls. If-statements. The return statement in afunction. Local variables.
For this and next lecture: Read chapter 2,but NOT 2.3.8!!!!Do the self-review exercises in 2.3.4 Congrats!! You now know the basics of OO (object-orientation). Sit next to someone. Today, we do some work in pairs.
Get out a blank sheet of paper.
Get out Iclicker. Conflict with Thursday Oct. 7th 7:30-9pm prelim? Email mwitlox@cs.cornell.edu with netid, other course name, other course instructor's email address BY NEXT THURSDAY. The last slide: local variables –variables declared within a method body. No time to discuss them. You are responsible for local variables. Read pp. 76-78 (sec. 2.3.7).
|
|
|
|
|
* CS1110 Lecture 16, 26 Oct 2010 While-loops Reading for next time: Ch. 8.1-8.3 (arrays) Prelim 2: Tu Nov 9th, 7:30-9pm.
Last name A-Lewis: Olin 155
Last name Li-Z: Olin 255
Conflicts? Submit CMS "assignment" "P2 conflicts" by today.
Review session: Sun Nov 7th, 1-3pm, Phillips 101. (Set your clocks back the night before!) Reminder: A5 due Sat. Oct 30th. See assignments pg for hints on snowflake geometry. A mystery (due to von Neumann): suppose you have a biased coin with unknown probability of heads p, 0 < p < 1.
How can you use this coin to simulate the output of a fair coin?
(Answer: while-loops …)
|
|
|
|
|
* CS1110, 20 October 2009 Intro to loops and for-loops Reading: Sec. 2.3.8 and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help.
Please have clickers out.
Assignment A5 out today: graphics, loops, recursion. Due Thursday October 29. Public service announcement: Whether you are a Freshman or Senior, Career Services can help you find exciting opportunities for next summer. Your college career office is the primary resource for jobs, internships, graduate school information, and assistance with career exploration. You are encouraged to schedule an appointment with an individual counselor or advisor to create a personalized career plan and maximize your effectiveness on the job search.
Those of you in Arts & Sciences should know that the career staff in Goldwin Smith specialize in assisting liberal arts students. Additionally, their new web
site includes information on connecting with alumni, identifying summer funding options, and field specific employment & graduate school resources. http://as.cornell.edu/careers
|
|
|
|
|
CS1110 2 November 2010 Developing array algorithms. Reading: 8.3..8.5 Haikus (5-7-5) seen on Japanese computer monitors Yesterday it worked.Today it is not working.Windows is like that.
A crash reducesYour expensive computerTo a simple stone.
Three things are certain:Death, taxes, and lost data.Guess which has occurred? Serious error.All shortcuts have disappeared.Screen. Mind. Both are blank.
The Web site you seek
Cannot be located, butCountless more exist.
Chaos reigns within.Reflect, repent, and reboot.Order shall return. Important point: how we create the invariant, as a picture *
|
|
|
|
|
CS1110 lecture 5 14 Sept 2010 Testing; the class Object; toString; static variables & methods Reading for this lecture: Testing with JUnit (Appendix I.2.4 & pp. 385--388), the class Object (pp. 153-154), function toString (pp. 112-113), static variables and methods (Sec. 1.5, p. 47). Reading for next two lectures: Executing method calls, if-statements, the return statement in a function, local variables. Chapter 2 except 2.3.8 and 2.3.9.
This reading will some clarify some concepts, such as method parameters, that we’ve had to gloss over so far. Keep your iClickers and a sheet of paper out. A1 (still) due Saturday Sept 18 on CMS; group yourselves by Wed.
Ignore “Extended Until” on CMS
(We have to apply a fake extension and halt grouping to enable iterative feedback on CMS.) * Email re: lab 03, quiz 2, etc. was sent on Saturday. Bouncing emails: cabooserwar, blacktora4546, jfk54, tariq.mozaini, lukeg432, dc.mcmurtry10, khyjhcho.
|
|
|
|
|
* Royal Flush is better than Full House CS1110 3 Nov 2009 Testing/Debugging. Also, about A6 Read chapter 14, pp. 385–401 Prof. Lee is out of town, giving an invited lecture at CIS, Penn:http://www.cis.upenn.edu/departmental/events/Lillian.lee.shtml
Title: A tempest: Or, on the floodof interest in sentiment analysis,
opinion mining, and
the computational
treatment of
subjectivelanguage
|
|
|
|
|
* CS1110 21 October 2010 Read: Sec. 2.3.8 and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams
A decimal point I'm a dot in place Animosity Is no amity
Debit card Bad credit Desperation A rope ends it
Dormitory Dirty room Funeral Real fun
Schoolmaster The classroom Slot machines Cash lost in 'em
Statue of liberty Built to stay free Snooze alarms Alas! No more Z's
The Morse code Here come dots Vacation times I’m not as active
Western Union No wire unsent George Bush He bugs Gore
Parishioners I hire parsons The earthquakes That queen shake
Circumstantial evidence Can ruin a selected victim
Victoria, England’s queen Governs a nice quiet land
Eleven plus two Twelve plus one (and they have 13 letters!)
|
|
|
|
|
* Lecture 22. Listening to events on a GUI(and development of a loop) Sec. 17.4 contains this material. Corresponding lectures on ProgramLive CD is a better way to learn the material. Why men think “computer”should be a feminine word
1. No one but their creator understands their internal logic.
2. The native language they use to talk with other computers is incomprehensible to everyone else.
3. Even the smallest mistakes are stored in long term memory for possible later retrieval.
4. As soon as you commit to one, half your paycheck goes for accessories for it.
Why women think “computer” should be a masculine word
1. In order to do anything with them, you have to turn them on.
2. They have a lot of data but still can't think for themselves.
3. They are supposed to help you solve problems, but half the time they ARE the problem.
4. As soon as you commit to one, you realize that if you had waited a little longer, you could have gotten a better model.
|
|
|
|
|
* CS1110 1 December 2009Applications and AppletsRead Chapter 16 of the text We also look at html, since we need it to use applets. Top finalists from a real-life “Dilbert quotes contest”
As of tomorrow, employees will be able to access the building only using individual security cards. Pictures will be taken next Wednesday and employ-ees will receive their cards in two weeks." (Fred Dales, Microsoft)
I need an exact list of specific unknown problems we might encounter. (Lykes Lines Shipping)
Email is not to be used to pass on information or data. It should be used
only for company business. (Accounting manager, Electric Boat Company)
This project is so important, we can't let things that are more important interfere with it. (Advertising/Marketing manager, United Parcel Service)
Doing it right is no excuse for not meeting the schedule. (Plant manager, Delco Corporation)
|
|
|
|
|
* Conclusion Please take the time to complete the online course evaluation for all your Courses.
For CS1110, completion of the evaluation is required and carries a weight of 1. FINAL
Friday, 10 Dec, 9:00-11:30 AM, Statler Auditorium
8 review sessions next week.See handout about the final for details.
You should have registered on the CMSif you have a conflict!
|
|
|
|
|
* CS1110 27 October 2009while loops Reading: today: Ch. 7 and ProgramLive sections.
For next time: Ch. 8.1-8.3 Prelim 2. Tuesday, 10 November, 7:30PM
If you have a conflict, and if you haven’t been contacted about the conflict, please email Maria Witlox mwitlox@cs.cornell.edu by Friday!!!!
Make sure you give her your last name, first name, Cornell netid. State clearly and completely what the conflict is. (E.g. don’t just say “I have another test.” State what the course (or whatever) is.)
|
|
|
|
|
TREES Lecture 9
CS2110 – Fall 2009
|
|
|
|
|
A Formal Foundation for ODRL What’s ODRL? An XML-based language for writing software licenses. Language specification includes:
syntax
English interpretation of the syntax
Language is freely available. (No copyright or patent restrictions!)
Language has been endorsed by nearly 20 organizations including:
Nokia, a multi-industry conglomerate focused on mobile communications;
DAFNE, a research project funded by the Italian government to develop a prototype of the national infrastructure for electronic publishing; and
RoMEO, a research project investigating the rights management of ‘self-archived’ research in UK academic community.
Bottom Line: ODRL has a significant widespread impact on rights management.
Problem: No formal semantics = Language is ambiguous ODRL is ambiguous.
In ODRL, we can write `if Alice is not permitted to download file A, then she may download file B’. Suppose Alice is neither explicitly permitted nor explicitly forbidden from downloading file A, may she download file B?
In ODRL, we can write `Alice may download file A, if she does actions a1 and a2 in order and does actions a3 and a4 in any order. Suppose Alice does the action sequence a2, a1, a3, a4, a2. May Alice download file A?
In ODRL, we can write that Alice may download file C, if neither of the above policies hold. What does this mean?
The ODRL document says that the language supports revocation, but doesn’t say who may revoke what.
Bottom Line: ODRL is under specified. As a re...
|
|
|
|
|
* CS1110 10 March 2009While loops Reading: today: Ch. 7 and ProgramLive sections.
For next time: Ch. 8.1-8.3 Prelim in two days: Th 7:30-9pm Uris Aud. (G01)
A5 due in one day: Wed 11:59pm Two handouts for today; keep them both out.
|
|
|
|
|
* CS1110 15 Oct 2009 Another classy lecture Casting about (secs 4.2, 4.3) the class hierarchy
apparent and real classes
casting between classes operator instanceof
function equals
Reading for next time: Sec. 2.3.8 and chapter 7 on loops. A4 due Friday (extra consulting hours then) Time management tip #42: schedule deadlines on your calendar;
also schedule the time it will take to do the work.
|
|
|
|