CSCI 1120 (Low-Level Computing), Fall 2010:
Homework 6

Credit:
20 points.

Reading

Be sure you have read, or at least skimmed, the readings for 10/18 and 10/25, linked from the ``Lecture topics and assignments'' page.

Programming Problems

Do the following programming problems. You will end up with at least one code file per problem. Submit your program source (and any other needed files) by sending mail to bmassing@cs.trinity.edu, with each file as an attachment. Please use a subject line that mentions the course number and the assignment (e.g., ``csci 1120 homework 6''). You can develop your programs on any system that provides the needed functionality, but I will test them on one of the department's Linux machines, so you should probably make sure they work in that environment before turning them in.

  1. (20 points) Write a C program that implements and tests one of the linked-list-like data structures listed below. For ease of coding, just make the program self-contained (rather than having it get input from a human), similar to the example implementation of unordered singly linked lists we looked at in class. (You can find it linked from the course ``sample programs'' page here -- it's the program for 10/25.) You can put the whole program in one file, or separate it into multiple files as I did in the example.

    Possible data structures are the following:

    You're welcome to use the example from class as a model or starting point, but you will probably learn more if you write most of the implementation of your chosen data structure yourself. Your functions can be recursive, as in the example, or not.



Berna Massingill
2010-10-28