Welcome to Professor Ziegler's CISC 3130 Sample Program Home Page




The following are links to files containing source code for the sample programs used during the in-class lectures. You may download a copy of these notes only if you are a registered student in my CISC 3130 class. To download a file, RIGHT CLICK on the link and use the "Save Link Target As" feature of your browser.

Introductory Program: Bank Accounts

Introductory Program - Bank Accounts Template

Sample input data file for the Bank Accounts program

Sample test cases data file for the Bank Accounts program


Calendar Class Features:

Calendar Class Features Demo
Chapter 16: Sorting and Searching

prj16_01SortingAlgorithms

pgm16_01_01Selection Sort

pgm16_01_02Selection Sort - Alternate Algorithm

pgm16_01_03Bubble Sort

pgm16_01_04Bubble Sort - Alternate Algorithm

pgm16_01_05Insertion Sort Algorithm

pgm16_01_06QuickSort Algorithm

pgm16_01_07QuickSort - Trace

pgm16_01_08Sorting Strings

pgm16_01_09Sorting Strings in a Method

pgm16_01_10Selection Sort Using A Sort Key

pgm16_01_11Bubble Sort Using A Sort Key

pgm16_01_12Sorting Using A Sort Key
----------------------------------------------------------------
prj16_02SearchingAlgorithms

pgm16_02_01Binary Search

pgm16_02_02Recursive Binary Search


Chapter 17: Generics

prj17_01UnsafeArrayList

Rectangle      pgm17_01_01UnsafeArrayList
----------------------------------------------------------------
prj17_02GenericPointClass

Point

pgm17_02_01TestPoint

pgm17_02_02TestPoint2

pgm17_02_03TestPoint3
----------------------------------------------------------------
prj17_04GenericMethodDemo

pgm17_04_01GenericMethodDemo
----------------------------------------------------------------
prj17_05ConstrainingTypeParameter

Point

pgm17_05_03TestPoint3
----------------------------------------------------------------
prj17_06InheritanceAndGenericClasses

Point      Point3D

pgm17_06_01TestPoint3D

pgm17_06_02PassPoint3D
----------------------------------------------------------------
prj17_07MultipleTypeParameters

Pair      pgm17_07_01PairTest
----------------------------------------------------------------
prj17_08GenericsAndInterfaces

pgm17_08_01GenericSearchArray

Pair      PairComparatorByT      PairComparatorByS      pgm17_08_02PairTestComparator
Chapter 18: Collections and the Stream API

prj18_01IterableInterface

pgm18_01_01ForEachDemo

pgm18_01_02IteratorDemo
----------------------------------------------------------------
prj18_02CollectionInterface

pgm18_02_01FilterDemo
----------------------------------------------------------------
prj18_03ListInterface

pgm18_03_01ListIteratorDemo

pgm18_03_02ListIteratorDemo2
----------------------------------------------------------------
prj18_04HashSetClass

Car

pgm18_04_01HashSetDemo1

pgm18_04_02HashSetDemo2

pgm18_04_03CarHashSet

pgm18_04_04LinkedHashSetDemo
----------------------------------------------------------------
prj18_05TreeSetClass

Car      CarComparator

pgm18_05_01TreeSetDemo1

pgm18_05_02TreeSetDemo2
----------------------------------------------------------------
prj18_06HashMapClass

Car

pgm18_06_01CarHashMap1

pgm18_06_02CarHashMap2

pgm18_06_03CarHashMap3

pgm18_06_04CarHashMap4

pgm18_06_05CarHashMap5
Chapter 19: Linked Lists

prj19_01LinkedList

LinkedList0      pgm19_01_01LinkedList0

LinkedList1      pgm19_01_02LinkedList1

DLinkedList      pgm19_01_03DoublyLinkedList

CircularDLinkedList      pgm19_01_04CircularDoublyLinkedList

RLinkedList      pgm19_01_05RecursiveLinkedList
Chapter 20: Stacks and Queues

prj20_01Stacks

pgm20_01_01StackDemo1

pgm20_01_02StackDemo2

EmptyStackException      StackOverFlowException

ArrayStack      pgm20_01_03ArrayStackDemo

LinkedStack      pgm20_01_04LinkedStackDemo
----------------------------------------------------------------
prj20_02Queues

EmptyQueueException      QueueOverFlowException

ArrayQueue      pgm20_02_01ArrayQueueDemo

LinkedQueue      pgm20_02_02LinkedQueueDemo
----------------------------------------------------------------
prj20_03GenericStacksAndQueues

EmptyStackException      StackOverFlowException

GenStack      pgm20_03_01GenStackDemo

EmptyQueueException      QueueOverFlowException

GenQueue      pgm20_03_02GenQueueDemo
Chapter 21: Binary Trees, AVL Trees, and Priority Queues

prj21_01BinaryTrees

Node      NodeUtilities

pgm21_01_01BinaryTreeNodes
----------------------------------------------------------------
prj21_02BinarySearchTrees

Node      NodeUtilities

BinaryTree      BinarySearchTree

pgm21_02_01BinarySearchTreeDemo

pgm21_02_02RemoveDemo1

pgm21_02_03RemoveDemo2
----------------------------------------------------------------
prj21_03AVLTrees

Node      NodeUtilities      AVLNode

BinaryTree      AVLTree      AVLTree2

pgm21_03_01AVLTreeDemo

pgm21_03_02AVLTreeDemoLLImbalance

pgm21_03_03AVLTreeDemoLRImbalance
----------------------------------------------------------------
prj21_04PriorityQueues

pgm21_04_01Heapsort

pgm21_04_02AlphaHeapsort

ArrayHeap      pgm21_04_03ArrayHeapsort

Comments or suggestions should be sent to:

ziegler@sci.brooklyn.cuny.edu

Chaim Ziegler, Ph.D.
Brooklyn College
Department of Computer and Information Science
2900 Bedford Avenue
Brooklyn, NY 11210
(718) 951-5000 x2074