Program for combination of dynamic memory allocation, MATLAB Programming

This assignment deals with the combination of dynamic memory allocation and structures to create a common data structure known as a doubly-linked list, which is shown in Figure 1.

1238_Program for combination of dynamic memory allocation.png

Figure 1: Doubly-linked list in which each node contains three fields--pointers to the previous and next nodes in the list, and a single integer as data.

The boxes containing 'X' at the beginning and end of the list show that the first and last nodes have NULL pointers for their previous and next pointers, respectively. The pointers to the first and last nodes, which allow the list to be traversed in either direction, are not shown. The list you will implement is a sorted doubly-linked list in which the data stored in each node is a string, and the nodes are sorted in alphabetical order. You will complete four functions, which allow you to add or delete a node, find a node containing a given string, or print the entire contents of the list.

2. Deliverables This assignment uses multiple files, each of which is provided on the course web page:

  • prog10_main.c: Main program. Do not change the contents of this file.
  • DLList.h: Header file that contains structure definitions and function prototypes to be used in this assignment. Do not change the contents of this file.
  • DLList.c: Definitions for the functions described in DLList.h. You should only complete the functions in this file-do not change any of the #include statements, structure definitions, or function prototypes (i.e., function return types and arguments). To complete this assignment, you will complete each of the functions in DLList.c. If each function is properly written, the entire program will work correctly. All three files must be included when compiling your code-see Section 6 for a description of how to add multiple files to a Visual Studio project.
Posted Date: 4/2/2013 2:27:25 AM | Location : United States







Related Discussions:- Program for combination of dynamic memory allocation, Assignment Help, Ask Question on Program for combination of dynamic memory allocation, Get Answer, Expert's Help, Program for combination of dynamic memory allocation Discussions

Write discussion on Program for combination of dynamic memory allocation
Your posts are moderated
Related Questions
Rules for variable names: In addition, the variable names must always be mnemonic that means they should make some sense. For illustration, if the variable is storing the radi

How to make EMG analysis by Matlab?

1. Given these sinusoids: x 1 (t) = 0.5cos(25t+20°),   x 2 (t)=0.85cos(25t+160°) and   x 3 (t)= 0.81cos(25t-145°) (a)  Subplot the phasors X 1 , X 2 and X 3 corresponding t

write a matlab program to calculate employee salary.

It is desired to determine the DFT of the analogue signal x (t) = 25 cos(10 Πt)cos(400Πt). (a) Find the Nyquist rate of the signal.   (b) What is the record (signal) length i

Documentation: It is very important that all the scripts be documented well, so that the people can understand what the script does and how it accomplishes that. One way of do

cAN Can I learn Metlab .I am X Scientist in DigitalCommunication. Can U please help me.I know the programming concepts

convolve the following sequences using tabulation method and verify the same using matrix mmethhod

Hello! How to cipher on Matlab the message consisting eight symbols. At first the message shares on blocks. Then in each of blocks shift of symbols is carried out. The initial text

Strings: The MATLAB also handles strings that are a sequence of characters in single quotes. For illustration, using the double function on a string will represent the equival