Preview

computer science record

Good Essays
Open Document
Open Document
6312 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
computer science record
M.A.M. SCHOOL OF ENGINEERING, SIRUGANUR, TIRUCHIRAPPALLI – 621 105.

M.A.M. SCHOOL OF ENGINEERING, SIRUGANUR, TIRUCHIRAPPALLI – 621 105.

Department of Computer Science and Engineering

Department of Computer Science and Engineering

LABORATORY MANUAL – CS 2208 – DATA STRUCTURES LABORATORY

LABORATORY MANUAL – CS 2208 – DATA STRUCTURES LABORATORY

EX: NO: 1 (a)

SINGLY LINKED LIST

AIM:

Step 3:Stop
PROGRAM :

To write a Program to implement a single linked list
ALGORITHM:
Step 1: Start
Step 2:Read the value of ch
Step 3:If ch=1 call create list functions
Step 4:If ch=2 call insert list functions
Step 5:If ch=3 call delete list functions
Step 6:If ch=4 call view list functions
Step 7:Repeat while (ch!=5)
Step 8:Stop
ALGORITHM FOR CREATE LIST
Step 1: Read value of item
Step 2:Allocate the memory far new node
Step 3:Assign values to new node data part
Step 4:Assign new node address part as null
ALGORITHM FOR INSERT LIST
Step 1: Read the value of item
Step 2:Allocate the memory far new node
Step 3:Assign values of data field as null else make link fields of all new nodes to point
Step 4:starting node to new node
Step 5:Set the external pointer from the starting node to new node
ALGORITHM FOR DELETE LIST
Step 1:If the link is empty then return else check whether the list contains more than one element
Step 2:Move the start pointer to the next node
Step 3:Free the first node
ALGORITHM FOR VIEW LIST
Step 1:Using the for loop i
Step 2:Print the linked list

#include
#include
#include struct node
{
int item; struct node *link;
};
typedef struct node NODE;
NODE *head;
NODE *getnode(); void readnode(NODE *newnode); void createlist(); void insertfirst(); void deletefirst(); void viewlist(); void main()
{
int ch; clrscr(); printf("\n\n\t\t SINGLY LINKEDLIST\n"); printf("\t\t *****************\n"); do { printf("\n 1.CREATE LIST"); printf("\n 2.INSERT FIRST"); printf("\n 3.DELETE FIRST");
printf("\n

You May Also Find These Documents Helpful

  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    class Link { public int iData; // data item public double dData; // data item public Link next; // next link in list // ------------------------------------------------------------public Link(int id, double dd) // constructor { iData = id; // initialize data dData = dd; // ('next' is automatically } // set to null) // ------------------------------------------------------------public void displayLink() // display ourself { System.out.print("{" + iData + ", " + dData + "} "); } } // end class Link //////////////////////////////////////////////////////////////// class LinkList { private Link first; // ref to first link on list // ------------------------------------------------------------public LinkList() // constructor { first = null; // no links on list yet } // ------------------------------------------------------------public boolean isEmpty() // true if list is empty { return…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Exercise 1: Review of array-based lists Create a project using the classes in the DocSharing area labeled “User-defined array list." Compile it, run it, and review the code that is given carefully. This code tests the ArrayList class provided in the lecture.…

    • 714 Words
    • 3 Pages
    Good Essays
  • Good Essays

    ECET 370 Week 5 Lab 5

    • 650 Words
    • 3 Pages

    Exercise 1: Review of the Lecture Content Create a project using the ArrayList class and the Main class provided in DocSharing. The ArrayList class contains implementations of the first three search methods explained in this week's lecture: sequential, sorted, and binary search. The Main class uses these three methods. These programs test the code discussed in the lecture. Compile the project, run it, and review the code that is given carefully.…

    • 650 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Text that is written in a human-readable programming language that a computer can also interpret…

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ishmael Leseur is the main character in “Don’t Call Me Ishmael”, a book by Michael Gerard Bauer. He courageously steps up to Year Nine only to be bullied for his name, embarrassed in front of his first love, and to become a complete social outcast. This leads to him naming Year Nine as “the toughest, the weirdest, the most embarrassingly awful and the best year” of his life.…

    • 758 Words
    • 4 Pages
    Good Essays
  • Good Essays

    • You have approximately 25 hours in which to complete this scenario. • Before starting work on the problem, read the whole of this Candidate Booklet thoroughly. You can…

    • 1453 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Records Control

    • 814 Words
    • 4 Pages

    Records management is defined as the systematic life-cycle management of records that includes identification, collection, classification, storage, retrieval, and, eventually, disposition (Records Managment: Buisness Definition, 2010). There are many elements which fall under the management of patient records including but not limiting to; patient data maintenance, identifying, classifying, and storing records, and identifying information requiring capture. Questions six thru twelve of the interview assignment from week four discuss similarities and differences between the circulation, tracking and security measures for records handling and storage within small, medium, and large facilities.…

    • 814 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    This paper will address the following regarding Kudler Fine Foods: identify Kudler’s key business and accounting information needs, analyze the strengths and weaknesses of Kudler’s current computer system and technology use, including hardware and software. It will explain what opportunities Kudler has in terms of technology and provide suggestions for improving Kudler’s ability to maximize these opportunities. It will discuss evaluating the threats that Kudler may encounter given their current systems and offer your suggestions, in terms of using technology.…

    • 1359 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    Records Organization

    • 298 Words
    • 2 Pages

    The similarities that I found for the organizations of patient files are that most of the paper files between the small and medium facilities are handled the same way. With the demographics and administrative filed on the left and medical on the right. Such as reports of labs, patient progress notes, prescription documentation, and any miscellaneous reports. Some of the small and medium facilities seem to use this filing method. This filing works well in a small to medium facility because there are not many files for the staff members to handle on a daily basis. I believe this system would not work with large facilities because the large facilities will need to use a filing system that is beneficial to the facility to keep track of patient’s files.…

    • 298 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Records Control

    • 554 Words
    • 3 Pages

    Every medical facility whether they are small, medium or large has some similarities and differences when it comes to how they control their patient’s medical records. The similarities between the small, medium and large medical facilities is that some facilities circulate there records and are stored in the front of the office. Majority agrees that the biggest problem in records management is the misplacement of files, follow up and treatment plans and billing issues are the worse. In terms of the measure they take to ensure the patients privacy as soon as the information is taken it is either file in their paper record or documented on the computer. In smaller facilities records are typically in three different areas to ensure that the information doesn’t get mixed up and when it comes to privacy measures it goes straight to the file area to be locked up until filed in the patient’s records. Charts are stored in a locked cabinet to prevent exposure of patient’s information to unauthorized personnel. They keep patients records on file from either 4 to 7 years and then its destroyed. In medium facilities paper records are stored in two different locations until stored in the proper places and are circulated from one area to another. Paper files are transferred immediately and electronic are documented during exam. Patients are required to sign a consent form before documents are released. When a record gets lost the original document is obtained from storage and files are kept for seven years then they are destroyed. Larger facilities store records in a storage room and the measures taken to ensure privacy is by all paper files to lock in a cabinet and computers are password protected so only authorized individuals are able to use them. The original file is kept in storage in case the medical record may get lost. Records are kept for 6 to 7 years at the medical facility…

    • 554 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Recording DATA

    • 1161 Words
    • 5 Pages

    It is also important to keep and track training and performance records on employees to enable management to assess productivity and performance, to help the employee develop with personal development plans, and to help them work to their full potential.…

    • 1161 Words
    • 5 Pages
    Good Essays
  • Good Essays

    * Able to separate the real privacy and security risks from things you don’t have to worry about…

    • 889 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    The thought of trying out new ideas and having no knowledge of the outcome, is what stimulates an individual for further analysis to be able to create something that can be developed and used within the upcoming technology, and to be a part of this is what I find most appealing about computer science. Being able to maintain a curious and explorative attitude is what I believe leads to gaining new knowledge which increases everyday allowing a personal to be learning constantly. This allows us to combine to the immeasurable potential of originality that already exists within this line of work.…

    • 615 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Records Management

    • 1125 Words
    • 5 Pages

    According to Beastall in the Journal article Records management meets knowledge gathering, one of the most prevalent problems in the management of information is finding ways to store information and yet ensure that it is readily available for use. "Tying the two sets of information together and getting the "soft" information incorporated, is the challenge for records managers today." (Beastall, 1998, p. 94) In this article, Records management meets knowledge gathering, Beastall brings to the fore front the problems of merging records management and knowledge gathering. Beastall proposes a three stage method "for managing records and knowledge in the current and likely future, technological environment." (Beastall, 1998, abstract)…

    • 1125 Words
    • 5 Pages
    Better Essays
  • Good Essays

    As it’s a well-known saying that some memories never fade away and the same happened with me.I remember this anecdote when I was in 6th Grade the first time I actually used laptop off course for playing games but apart from just playing games this 15 inch portable machine totally fascinated me. This incident not only instigated my penchant towards computers but also augmented the curiosity inside me as I grew older and untangled the mysterious concepts of this enigmatic stream.…

    • 807 Words
    • 4 Pages
    Good Essays

Related Topics