6089 comments
2357 subscribers
6232 on Twitter
Subscribe! Feed reader E-mail

CS21a ideas for vectors

(education)

I want students to be able to keep track of the elements of vectors.
I also want them to become familiar with the common operations:

- size()
- add(…)
- get(…)

I want them to be able to predict what happens to a vector during
a sequence of operations. This is important for tests and for tracing
through code. I think I can make another Flash animation module with
hints that show the vector’s contents.

Then I want them to be able to complete the Text Twist exercise.
I’ll need to teach them how to define comparators and to use Collections.sort.

Plan for Friday:

brief status check on reading from files

Exercises

Submit to me an algorithm in English on paper _before_ you code.

- reading through the dictionary and getting a Vector of all the words that are contained in the given letters
- reading through the dictionary and getting a Vector of all the words that are contained in the given letters, sorting this by length
- reading through the dictionary and picking a random 7-letter word, then scrambling the letters in that word
- advanced: creating a simple graphical user interface: label, text field, “Enter” button, “New Game” button, “Twist” button.
- advanced: make a Text Twist clone. ;)

Short URL: http://sachachua.com/blog/p/1151

On This Day...

  • 2011: Batch cooking, community-supported agriculture, and gardening — W- and I are big fans of batch cooking. Making large batches of food and freezing individual portions means that [...]
  • 2010: New note-taking workflow with Emacs Org-mode — The new workflow looks like it works better for me. Or rather, it’s an old workflow with new tools. [...]
  • 2009: Shifting gears — I woke up with a terrible cough–the same one from last week, but worse–and decided not to inflict it on [...]
  • 2008: Leia’s home! — Water: Drank a number of laps of water. Food: Ate a third of an 85g can of Fancy Feast Turkey. We took [...]
  • 2008: Bio: “IBM: The Next Generation” — I thought I’d start keeping track of the bios I use in presentations, hiding company-specific information as necessary. =) Sacha Chua [...]
  • 2005: More about Spec Ops — Jon_P wrote: Also, don’t forget that most hardcore geeks in the Philippines dabble in Linux. The extent of familiarity with MS technologies [...]
  • 2005: Annoyed with self — Update: 2013/01/12: Getting better at this! =) Belt bag + digitizing as much as possible helps a lot. One of my [...]
  • 2005: Blog envy — How can Zak make Planner look so cool? I need to develop mad CSS skillz.
  • 2004: Whew! — Long list of checked-off TODO items. Planner is good for the heart. Today I bought four more spools of yarn, anticipating [...]
  • 2003: Links from the past — First noticed on 2003.02.12 - Redesigning an Introductory Java Course to Bridge the Gender Gap (http://www.contrib.andrew.cmu.edu/~tshih/THESIS/thesisFinal.doc) - Introduction to Programming Using Java [...]
  • 2003: Khaire – literary night for tomorrow — From the announcement: “Khaire: Magsaya!:A Literary Night,” reading by accomplished poets, 6-8:30 p.m., Quad 1. Be alive and rejoice at the medley [...]
  • 2003: HTML_Form and passwords — Pfft. HTML_Form from http://pear.php.net is not so nice when it comes to passwords in forms.
  • 2003: chora — http://www.horde.org/chora/about/ Chora is a CVS repository viewer that I learned about from #php. I _thought_ I’d blogged about it, but I grepped [...]
  • 2003: Flash MX on Linux — Apparently, Flash MX is supposed to work under WINE. I should look into installing it, then. =) http://frankscorner.org/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=28&page=1 for more information. Update [...]
  • 2003: Ethics talk with the philosophy department — Introductions - Sandra Lovenia, introduction to IT for comtech, introduction to MIS. - Ariel Maguyon, seniors and juniors, computer architecture, MIS administration - [...]
  • 2003: CS21A today and Monday — (education) The files mentioned can be found at http://sacha.free.net.ph/cs21a/ . Looks like my thinking out loud does have its uses, so I’ll [...]
  • 2003: info links from Emacs — ;; ;; The following functions to insert info-links into a buffer were originaly ;; posted on gnu.emacs.gnus by Reiner Steib, August 2003. ;; [...]

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!