Coder Social home page Coder Social logo

task_3's Introduction

Task_3

Linked List Introduction

Create a program to store and manage a data using single linear linked list

list.h

Create ADT of single linked list

  • group 1-5 : infotype is school-related data (ex: student, course, book, etc.)

  • group 6-11: infotype is compaly-related data (ex: staff, department, building, etc.)

  • the infotype (struct list element) must have

    • 1 variable member that can act as an ID
    • at least 4 other variable members
  • each group must have different infotype

  • define a function to allocate an element list

    • function allocate(in: x : infotype) : address
  • define insert and delete procedure

    • procedure insertFirst( i/o: L : List, i: P : address )
    • procedure insertLast( i/o: L : List, i: P : address )
    • procedure insertAfter( i/o: L : List, i: P : address, Prec : address )
    • procedure deleteFirst( i/o: L : List, i/o: P : address )
    • procedure deleteLast( i/o: L : List, i/o: P : address )
    • procedure deleteAfter( i/o: L : List, i/o: P : address, Prec : address )
  • define search function and view procedure

    • function searchElement( i: L : List, x : infotype ) : address
    • procedure viewList( i: L : List )
  • for additional point

  • define search function using sentinel

    • function searchSentinel( i: L : List, x : infotype ) : address
  • define insertion sort procedure

    • procedure insertionSort( i: L : List )

list.cpp

Implement function and procedure defined in list.h

  • In a group of 4: each member is to write 2 functions/procedures

main.cpp

Create a main menu to run your application
Menu Application:

  1. insert first
  2. insert after
  3. insert last
  4. delete first
  5. delete after
  6. delete last
  7. view list
  8. search element

task_3's People

Contributors

azharirahmann avatar adf-telkomuniv avatar fauzanrambang avatar ariefrachmatr avatar dessykn avatar undeed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.