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

Plot way forms for the following modulation schemes using Mathlab: a)      2 ASK                     b)  BFSK                        c) BPSK 4 ASK

I have couple questions in MATLAB I need help in

The Requirement details of project are as below. I also need detail description for presentation. For the project, given the training dataset ticdata2000.txt use any method you

Size function - Dimensions of matrix: For the matrix mat shown next, it has three rows and two columns, therefore the size is 3 × 2. The length is the larger dimension that is

Functions which return More than one Value: Functions which return one value have one output argument. The Functions which return more than one value should rather have more t



I would like to ask if its possible to get help programing in matlab. If yes - how can I get help ?