Preview

L215 Report

Better Essays
Open Document
Open Document
3708 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
L215 Report
Experiment L215

ICIS Practicum Laboratory

1.0 INTRODUCTION
In any programming language, there are several data types that are available for programmers to use, such as integers, floating point numbers, strings or characters. Many applications need more complicated structures of data that can be added on a program-to-program basis; hence, the notion of data abstraction.

An abstract data types (ADT) consists of data together with functions that operate on the data. We also can say that it’s a set of data values and associated operations that are precisely specified independent of any particular implementation. An abstract data types is “abstract” in the sense that how data are represented and how functions are implemented are not specified. Only the behavior of the functions is specified. Examples of ADTs include that of Stack, Queue and Links.

In this lab, we are going to implement some of familiar ADTs like stack and queue using Visual C++ programming language. In this experiment we were more focus on the data structures in stead of programming language skills.

2.0 OBJECTIVES
The objectives of the experiment are: a) Understand on the design and implementation of abstract data types. b) Able to implement ADTs using appropriate data structures. c) Able to process and manipulate data elements associated with ADTs.

3.0 THEORETICAL BACKGROUND 3.1 The stack abstract data type
The stack is ubiquitous. It is a temporary abstract data type and data structure based on the principle of Last in First out (LIFO).A stack is a list of items with the restriction that insertion and deletion can only be performed in only one position, namely the end of the list called the “top”. The fundamental operations of the stack are “push”, which is equivalent to insert, add -1-

Experiment L215

ICIS Practicum Laboratory

the item at the top of the stack and “pop” operation which removes the most recently added item. Shown as Figure 2.1 Stacks are sometimes known



References: RICHARD JOHNSONBAUGH and MARCUS SCHAEFER, ALGORITHMS, Prentice Hall, 2004 - 17 -

You May Also Find These Documents Helpful

  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Today’s lecture will be spent entirely in the computer lab. At the end of lab, submit this worksheet.…

    • 581 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Good Essays

    ECET230 Lab1 Procedures

    • 2138 Words
    • 8 Pages

    The second method of DESIGN ENTRY is to use a specialized programming language called VHDL (Very high-speed integrated circuit Hardware Description Language). This method is used in this and future Labs.…

    • 2138 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Data Base

    • 2312 Words
    • 10 Pages

    * Each value manipulated by an Oracle database possesses a data type. The data type of a value links a selection of attributes to the value. These attributes of the value differentiate one data type from the others. Oracle treats certain data types in a distinct way. For instance, one can add values of NUMBER data type, but not values of RAW data type. When one builds a table or a cluster, one must assign data types for all its columns. In Oracle, the arguments of a procedure or stored function also need to be allocated data types. The data types specify the domain of values which…

    • 2312 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    It 210

    • 2960 Words
    • 12 Pages

    Although the value of a variable may change during execution of a program, in all our programs so far, a single value has been associated with each variable name at any given time. In this chapter, we will discuss the concept of an array—a collection of variables of the same type and referenced by the same name. We will discuss one-dimensional arrays (lists) at length and focus briefly on twodimensional arrays (tables). You will learn how to set up and use arrays to accomplish various tasks.…

    • 2960 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    CSO Gaddis Java Chapter1 1

    • 2953 Words
    • 29 Pages

    © 2012 Pearson Education, Inc. All rights reserved. Chapter 1: Introduction to Computers and Java Starting Out with Java: From Control Structures through Data Structures Second Edition by Tony Gaddis and Godfrey Muganda Chapter Topics Chapter 1 discusses the following main topics: – Introduction – Why Program? – Computer Systems: Hardware and Software – Programming Languages – What Is a Program Made Of? – The Programming Process –…

    • 2953 Words
    • 29 Pages
    Satisfactory Essays
  • Powerful Essays

    In this lab you will be writing a dynamic storage allocator for C programs, i.e., your own version of the malloc, free and realloc routines. You are encouraged to explore the design space creatively and implement an allocator that is correct, efficient and fast.…

    • 2325 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    After becoming familiar with these structure types we had to apply them by creating a java program and I tell you … that was interesting. I think I did a good job but I will know for certain next week, till then fingers cross.…

    • 605 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Symbol Table

    • 1792 Words
    • 8 Pages

    A symbol table mechanism must allow us to add new entries and find existing entries. The two symbol table mechanisms are linear lists and hash tables. Each scheme is evaluated on the basis of time required to add n entries and make e inquiries. A linear list is the simplest to implement, but its performance is poor when n and e are large. Hashing schemes provide better performance for greater programming effort and space overhead.…

    • 1792 Words
    • 8 Pages
    Better Essays
  • Powerful Essays

    (iii) A document type definition (DTD) is written in a different language from XML, whereas a schema is itself an XML document (1 mark) and the programmer need only be familiar with one kind of syntax (1 mark). Furthermore, DTS’s allow only predefined data types (1 mark) whereas schemas allow new data-types to be defined (1 mark).…

    • 1322 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Data elements are the basic unit of information that have a unique importance and subcategories that must be standardized and carried throughout the practices (Aspenden, et al., 2004). Specific codes should be recognized in all terminology sets to represent the data elements to ensure data comparability, which will allow all information systems to hold the data as a combined enterprise (Aspeden, et al.,…

    • 558 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The SDLC Process

    • 907 Words
    • 4 Pages

    One of the key principle ideas behind the creation of classes in data abstraction the data type is less important than the operations that can preformed on it in a sense the data type is hidden behind a limited number of functions method…

    • 907 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Oops

    • 4782 Words
    • 18 Pages

    Data abstraction is a process of representing the essential features without including implementation or background details.…

    • 4782 Words
    • 18 Pages
    Good Essays
  • Good Essays

    Computer Science Terms

    • 1163 Words
    • 5 Pages

    Types: a set of related values along with the operations that can be preformed with them…

    • 1163 Words
    • 5 Pages
    Good Essays