You are on page 1of 1

Faculty of Computers and Information

CS214: Data Structures


Fall 2016

Dr. Marwa M. A. Fattah & Dr. Sarah Nabil


Faculty of Computers and Information

HomeWork 4 (Doubly Linked List)


A doubly linked list is a linked data structure that consists of a set of sequentially linked
nodes. Each node contains a data entry field and two pointers that are references to the
previous and to the next node in the sequence of nodes. You are required to:

1. Write the type definition of a doubly-linked-list node (DLL_node) in C.


2. Define the doubly linked list to be, simply, a pointer to a node.
3. Write a C function to initialize the list.
4. Write a C function to insert an element at a particular position.

Remember to use appropriate names for types and variables. It is expected that you define
the pre-conditions and post-conditions for every function of the above.

Turning in Homework:
You will turn in your assignment as a hard copy accompanied by a soft copy on a rewritable
CD. Submission is due at the beginning of your Section next week. Your submitted homework
(hard & soft copies) will be graded by your TA and returned to you.

You might also like