IBCS2 - 0809 - October

From WLCS

Friday (10/31/08)

  • Return and go over 1st Quarter Exam
  • Introduction to Dynamic Queue
    • What are the two locations on a queue we try to remember?
    • What does a queue look like when using nodes?
    • What are the behaviors of the queue data type?
  • Create a class called DynamicQueue
  • Like the DynamicStack class, you will need to use the Node class
  • Implement all the attributes and methods of a dynamic queue
    • You will need two Node attributes: head and tail
    • DynamicQueue() //default constructor
    • void add(int num)
    • int remove()
    • int getHead()
    • int getTail()
    • bool isEmpty()
    • void print()
  • Create a test class called DynamicQueueTest to test out your queue. Hint: You may reuse your other queue test main class

Thursday (10/30/08)

  • 1st Quarter Exam

Wednesday (10/29/08)

  • 1st Quarter Exam Review cont'd

Tuesday (10/28/08)

  • 1st Quarter Exam Review
    • Java programming
    • class construction
    • methods
      • components of the method header
    • Stacks
      • how they work
      • operations: push(), pop(), top(), isEmpty()
      • why we use them
      • example uses
    • Queues
      • how they work
      • operations: add(), remove(), head(), tail(), isEmpty()
      • why we use them
      • example uses
    • Nodes and reference variables
      • Memory diagram and tracing code
      • Stack and Queue implementations using Nodes

Wednesday - Monday (10/22/08 - 10/27/08)

Warmup:

Agenda:

  • Data Structure vs. Abstract Data Type
  • Re-Introduction to Stacks
    • Create a new class called DynamicStack
    • What attribute must we keep track of when we talk about stacks?
    • Create a Node reference for the most important stack attribute
    • Implement push(int num) using Nodes.
      • push() should not return anything
      • push() creates a new Node with the num, and set the new Node's next reference to the top
      • Don't forget to update the top to be the new node!
    • Implement pop(), which should POP and return the value on top of the stack and update the top
    • Implement top(), which should just return the value on top of the stack
    • Implement isEmpty() which returns true if the stack is empty
    • Implement print() which should print your entire stack
    • TEST YOUR STACK USING MR. BUI'S STACK MAIN OR YOUR OWN MAIN METHOD

Tuesday (10/21/08)

Friday - Monday (10/17/08 - 10/20/08)

Monday - Thursday (10/13/08 - 10/16/08)

Warmup:

  • IB exam registration.
  • Everyone will take the HL exam

Agenda:

Thursday (10/9/08)

Warmup:

  • Why do we use queues?
  • Give an example of a queue in the room
  • Identify the following parts in each of the method declarations: access type, return type, method name, parameters
    • public int getSize()
    • private String whatNot(String whatFor)
    • public void print(int size, String stuff)

Agenda:

  • Reminder: Dossier Criteria for Success due TOMORROW
  • Demo your Queue.java and Queue.main
  • Work on your Criteria for Success

Tuesday - Wednesday (10/7/08 - 10/8/08)

Warmup:

  • What does LIFO stand for?
  • What are the operations we can use on a stack?
  • When do we use stacks?

Agenda:

Monday (10/6/08)

Wednesday - Friday (10/1/08 - 10/3/08)

  • Complete adding selectionSort() and bubbleSort() to your AddressBook
  • Demo missing work to Mr. Bui
  • Read through Media:CriterionA2_criteriaforSuccess.doc
  • Begin working on your Criteria for Success. It will be due next week.

Archives