Lab 2 in datastruct Push and pop.doc - I Objectives At the...

  • No School
  • AA 1
  • 8

This preview shows page 1 - 3 out of 8 pages.

I. Objectives: At the end of the experiment students must be able to: Cognitive a.) understand the execute technique of linked list. . Psychomotor: a.) construct a program using linked list. b.) compile and debug the error of the program Affective a.) appreciate the concept behind this experiment II. BACKGROUND INFORMATION A Linked list is a linear collection of specially designed data elements, called nodes linked to one another by means of pointer. Each node is divided into two parts: the first part contains the information of the element, and the second part contains the address of the next node in the linked list. Address part of the node is also called linked or next field. Figure 1.0 Node. Figure 1.1 Linked List. The linear linked list can be represented in memory with the following declaration. struct Node { int DATA; //Instead of ‘DATA’ we also use ‘Info’ struct Node *Next; //Instead of ‘Next’ we also use ‘Link’ };
Image of page 1
typedef struct Node *NODE; III. EXPERIMENTAL PROCEDURE: All the nodes in a singly linked list are arranged sequentially by linking with a pointer. A singly linked list can grow or shrink, because it is a dynamic data structure. Following figure
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 8 pages?

  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors