Topic outline

  • Algorithms and Data Structures Laboratory

    Welcome to the Algorithms and Data Structures Lab WebPage

    Spring 2018/2019

    • Lab Assistant

      Eyad Almasri

      Emaileyad.almasri@emu.edu.tr

      Office: EE242

    • Lab Groups

      Group 1

      Group 2

      Group 3

      18700937

      17001828

      18700263

      17700856

      16002471

      18700289

      17700998

      17700052

      18700707

      17700236

      17700330

      81871

      15000074

      17700995

      18700952

      15002463

      16700125

      18701733

      15701496

      17701038

      18701791

      16000100

      17701123

      137782

      17700726

      17701205

      15700772

      16700127

      17701321

      110736

      16700222

      17701404

      140084

      16700703

      17701465

      144881

      16700755

      17701489

      17700366

      16701386

      17701507

      17700627

      17000070

      17701513

      17700650

      17000072

      17701519

      17701015

      17700179

      17701616

      17701775

      17001829

      15330083

      17701797

      17330192

      17701687

      18300152

      16700760

      17701752

      18700764

      17700140

      17701762

      17701643

      15702086

      17701041

      17001827

       

       

      17701893

    • Spring 2018 / 2019

    • Lab. Sheet 1: Variables and Functions

      • Every variable occurring in a program must be declared before it is used.
      • Modules in C are called functions. There are two types of functions:
        1. Programmer-defined functions – one that programmer writes
        2. Pre-packaged functions available in the C standard library (printf, scanf etc.)
      • An array is a contiguous collection of objects of the same type.

      You can download the lab sheet from here.

      • Lab. Sheet 2: Recursive Functions and Pointers

        This week we are going to talk about Recursive Functions and Pointers.

        • Recursive Functions 

                 Recursive function is one that calls itself for further simplified processing.

        • Pointers

                 Pointers hold (or store) the address of an integer variable. In other words, it is a reference to another variable in a program that contain memory  addresses as their values.

         You can can download detailed contents of this lab week from here.

        • Lab. Sheet 3: Structures

          This lab is going to be about structures which are data types suitable for grouping data elements together. The following topics are covered:

          • Structure definition
          • Initializing structures
          • Arrays of structures
          • Structures which contain structures

          I invite you all to download the lab sheet from here and have a look on the material before our next session.

        • Lab. Sheet 4: Stacks

          A stack is an ordered collection of items into which new items may be inserted and from which items may be deleted at one end called the top of the stack. A stack is a dynamic constantly changing object. There are 2 basic operations associated with stack:

          1. “Push” is the term used to insert an element into a stack.
          2. “Pop” is the term used to delete an element from the stack

          You may download the lab sheet from here.

          • Lab sheet 5: Queues

            A queue is an ordered collection of items from which items may be deleted at one end (called the front of the queue) and into which items may be inserted at the other end (called the rear of the queue).

            In this lab we get familiar with :

            1. Queue
            2. Circular Queue

            Please download the lab sheet from this link.

            • Lab Sheet 6: Linear Linked Lists

              A linked list is comprised of a series of nodes, each node containing a data element, and a pointer to the next node. The following figure shows an example of a link list.

              In this lab you learn how to create a link list using C programming.

              Please download the lab sheet from here.