VALLIAMMAI ENGINEERING COLLEGE

Size: px
Start display at page:

Download "VALLIAMMAI ENGINEERING COLLEGE"

Transcription

1 VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 0 0 DEPARTMENT OF INFORMATION TECHNOLOGY & COMPUTER SCIENCE AND ENGINEERING QUESTION BANK II SEMESTER CS0 PROGRAMMING AND DATA STRUCTURES I (Common to IT & CSE) Regulation 01 Academic Year 01 1 Prepared by Mr. R.Umanesan, Assistant Professor/IT) Ms. R.Shanthi, Assistant Professor/IT) Mr. G.Vivekanandan, Assistant Professor/GE)

2 VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 0 0. DEPARTMENT OF INFORMATION TECHNOLOGY_& COMPUTER SCIENCE AND ENGINEERING SUBJECT QUESTION BANK : CS0 PROGRAMMING AND DATA STRUCTURES I SEM / YEAR: II / I UNIT I - C PROGRAMMING FUNDAMENTALS- A REVIEW Conditional statements Control statements Functions Arrays Preprocessor - Pointers - Variation in pointer declarations Function Pointers Function with Variable number of arguments PART - A Q.N o Questions BT Level Competence 1 List out the Conditional and Control statements in C. What is a preprocessor? Give any two examples. What is a pointer to pointer? 4 What are the primitive data types in C? What are function pointers in C? Explain with example. Define an array and give an example. Give an example on call by reference. 8 Give two examples for C preprocessors with syntax. Differentiate iteration and recursion. 10 Distinguish between library function and user defined function. Calculate the output of the following program: int k; 11 int num = 0; k = num>? (num<= 10? 100:00):00; printf ( "k = %d\n", k ); 1 Show the pointer variable initialization with an example. 1 Illustrate the structure of a C Program. Differentiate between a while and do..while statement. 1 1 Analyze the following code and predict the output: for(i=0;i<10;i++) { if(!(i/)) continue; printf( %d \t,i); } With the help of printf function, Explain how C handles functions with variable number of arguments. 1 Compare the working of array and Functions. BTL- Evaluating R.U, R.S & G.V CS0-PDS I Page

3 18 Summarize the working of pointers. BTL- Evaluating 1 Develop a simple C program using functions. BTL- Creating 0 Develop a simple C program using pointers. BTL- Creating 1 PART - B a. Describe the conditional statements available in C with an example. (8) b. Describe the loop statements available in C with an example. (8) Describe about pointers, and how the pointer variables are declared with an example. (4+1) Label the structure of C program and explain in detail.(+10) Distinguish between the following: i. Actual and Formal arguments. () ii. Global and Local variables. () iii. Automatic and Static variables. () iv. Scope and Visibility of variables. () v. & operator and * operator. (4) Describe the ways of passing parameters to functions with an example. (8 + 8) a. Analyze and Write a Function that returns a pointer to the maximum value of an array of double s.if the array is empty return NULL. Double *maximum(double *a,int size); (8) b. Analyze and Write a C Program to find all the roots of a Quadratic equation. (8) a. Analyze and write a C Program using function to check if the given input number is Palindrome or not.(8) b. Explain the C Preprocessor operators, each with an example that is used to create Macros.(8) Illustrate and explain about the following with an example. i. Function with number of arguments. (8) ii. Function with pointers. (8) a. Write and explain a C program to find the unique elements in an array using a function unique. The function takes the array as a parameter and prints the unique elements. (8) b. Write and explain a C Program to print the Fibonacci numbers without using recursion. (8) Create a C Program to multiply two matrices that are represented as pointers. Use a function to the function multiply which takes the two matrices as parameters and prints the result of the multiplication. (1) a. Illustrate the various control structures used in C with suitable example. (10) b. Write a C program to implement the following string handling functions using function & pointers. () i. strlen( ) ii. strcat( ) iii. strcpy( ) BTL- BTL- Evaluating Creating R.U, R.S & G.V CS0-PDS I Page

4 1 1 Describe the following : a. Write a C program to print the Fibonacci series using recursion () b. Write a C program with functions & pointers to add two matrixes and return the resultant matrix to the calling function. (10) Explain the array types with an example program for each type. (1) a. Describe in detail about the Preprocessors in C. (8) b. Develop a C program to print the even numbers between 1 to 100. (8) UNIT II - C PROGRAMMING ADVANCED FEATURES Structures and Unions - File handling concepts File read write binary and Stdio - File Manipulations Q.N o Questions PART - A BT Level Competence 1 What is an array of structure and give an example. What is slack byte? What is a file? List out the file handling functions. 4 What are the common uses of rewind() and ftell() functions? List the similarities and differences between structure and union. What is a pointer variable and what are the uses of pointer variable? Distinguish between getc() and getw(). 8 Distinguish getchar() and putchar(). Give the applications in which unions rather than structures can be used. 10 Distinguish between fread() and fwrite(). 11 Show the working of a syntax as given below: Fread(&my_record,sizeof(struct rec),1,ptr_myfile); 1 Illustrate the need of union in C. 1 Illustrate the need of structures in C. When a program is terminated, all the files used by it are automatically closed. Analyze why it is then necessary to close a file during execution of the program. 1 Point out the modes of operation used in file. 1 Compare fseek() and ftell() function. R.U, R.S & G.V CS0-PDS I Page 4

5 1 Will the following declaration work. Explain with justification for your answer: Struct Student { int rollno = 1; BTL- Evaluating float marks [] = {,0,); char gender; }; 18 Compare and Evaluate the working of structures and union. BTL- Evaluating 1 Develop a simple C program using Structures. BTL- Creating 0 Develop a Simple C Program using file modes. BTL- Creating PART - B Explain and Describe the following: i. Structure (8) ii. Union. (8) Explain and describe the string handling functions with examples. (1) Describe the following file manipulation functions with examples. a) rename() () b) freopen() () c) remove() () d) tmpfile(void) (4) e) fflush() () Distinguish between the following functions. a) getc() and getch() (4) b) scanf() and fscanf() (4) c) printf() and fprintf() (4) d) feof() and ferror() (4) Compare and Contrast structures and unions with an example program. (1) Illustrate and explain a C program to copy the contents of one file into another. (1) Explain the different file manipulations with a suitable program. (1) Analyze and design a structure student record to contain name, DOB, total marks obtained. Develop a program to read data for 10 students in a class and list them rank-wise. (4+1) a. Write and explain a C program that uses functions to perform the following operations using structure. (1) 1. Reading a complex number. Writing a complex number. Addition of two complex numbers 4. Multiplication of two complex numbers. b. Summarize the advantages and disadvantages of structures and unions in C Programming. (4) BTL- Evaluating R.U, R.S & G.V CS0-PDS I Page

6 10 a. Develop and Perform the following to manipulate file handling using C. (1) 1. Define an input file handle called input_file, which is a pointer to a type FILE..Using input_file, open the file results.dat for read mode. Write C statements which tests to see if input_file has opened the data file successfully if not, print an error message and exit the program. 4. Write a C Code which will read a line of characters (terminated by a \n) from input_file into a character array Called buffer. NULL terminate the buffer upon reading a \n..close the file associated with input-file b. Develop a C program to display the contents of a file on a screen. (4) BTL- Creating a. Discuss about the file handling concepts in C. (8) b. Explain different ways to read data from a file. (8) Explain a structure data type named date containing three integer members day, month and year. Develop an interactive modular program to perform the following tasks: 1. To read the data into structure members by a function. (8). To print the date in the following format: April 1, 011 by a second function. (8) Describe the functions fscanf, fprintf, fgets, fputs, getw, putw, getc, putc, fread, fwrite, feof, ferror, fseek, ftell, rewind with an example. (1) Illustrate a C program to create the employee database and to perform the manipulations such as adding a record, deleting a record, updating a record. (1) UNIT III - LINEAR DATA STRUCTURES LIST Abstract Data Types (ADTs) List ADT array-based implementation linked list implementation singly linked lists- circularly linked lists- doubly-linked lists applications of lists Polynomial Manipulation All operation (Insertion, Deletion, Merge, Traversal) Q.N o Questions PART - A BT Level Competence 1 Define ADT. Give any two examples. What are the postfix and prefix forms of the expression: A + B* (C D) / (P R) List out the areas in which data structures are applied extensively. 4 Define non linear data structure. What are the types of linked list? List out the advantage of circular linked list. Distinguish between linear and non linear data structures. 8 Clearly distinguish between linked lists and arrays. Mention their relative advantages and disadvantages. Differentiate arrays and linked lists. R.U, R.S & G.V CS0-PDS I Page

7 10 Give an example for linked list application. 11 Binary search cannot be performed on a linked list. Examine. 1 Illustrate the use of linked list with an example. 1 Show the ways in which list ADT can be implemented. Compare calloc() and realloc() function and mention its application in linked list. 1 Analyze and write a find routine in array implementation. 1 Analyze and write the array representation of a polynomial: p(x) = 4x +x +x+ 1 Should arrays or linked lists be used for the following types of applications? Support your justification. 1. Many search operations in sorted list. BTL- Evaluating. Many search operations in Unsorted list. 18 Compare singly linked list with circular linked list. BTL- Evaluating 1 Develop a simple C Program to modify a node in a linked list. BTL- Creating 0 Develop an algorithm for insertion operation in a singly linked list. BTL- Creating PART - B 1 4 Explain and describe the following: i. Applications of lists. (8) ii. Polynomial manipulation. (8) What is a linked list? Describe the suitable routine segments for any four operations. (+) List an algorithm to perform insertion and deletion on a doubly linked list. (8+8) (i) Describe the insertion and deletion procedures for cursor based linked lists.(8) (ii) Give an algorithm for the deletion and reverse operations on doubly linked list. (8) Describe the creation of a doubly linked list and appending the list. Give relevant coding in C. (1) Write a C Program to demonstrate an addition, subtraction and multiplication operations on polynomial using a linked list. (++) Analyze and write C code for circular linked list with create, insert, delete, display operations using structure pointer. ( ) 8 Explain the application of linked list in detail. (1) Consider an array A[1: n] Given a position, write an algorithm to insert an element in the Array. If the position is empty, the element is inserted easily. If the position is already occupied the element should be inserted with the minimum number of shifts. (Note: The elements can shift to the left or to the right to make the minimum number of moves). (1) Design a nested structure and explain how the structure members are accessed in a nested structure with suitable example. (1) Explain the various operations of the list ADT with examples. (1) BTL- BTL- Evaluating Creating R.U, R.S & G.V CS0-PDS I Page

8 1 1 Illustrate how polynomial manipulations are performed with lists? Explain the operations. (4+1) Explain the steps involved in insertion and deletion into a singly linked list. (8+8) Describe a C program for linked list implementation of list. (1) UNIT IV - LINEAR DATA STRUCTURES STACKS, QUEUES Stack ADT Evaluating arithmetic expressions- other applications- Queue ADT circular queue implementation Double ended Queues applications of queues Q.N o Questions PART - A BT Level Competence 1 Define stack and queue. Define double ended queue. List the applications of a queue. 4 What are the applications of priority queue? List any four applications of stack? What is circular queue? Given the prefix for an expression. Write its postfix: -*-+abc/ef-g/hi 8 Circular queue is better than standard linear queue, Why? Describe how the following "infix" expression is evaluated with the help of stack : * ( + ) - 1 / 4 10 Distinguish between singly and doubly linked lists. 11 Classify the different types of queues. 1 Illustrate the difference between a queues and linked lists 1 with Complete an example. a routine to display the contents of queue. Analyze and write a routine to check whether the queue is full or empty. 1 Point out the advantage of representing stack using a linked list than array. 1 Point out the rules followed during the infix to postfix conversions. 1 For railway reservation the queue data structure is preferred Justify. BTL- Evaluating 18 Compare the working of stack and queue data structure. BTL- Evaluating 1 0 Develop an algorithm for inserting a new element into the stack. Develop an algorithm for deleting an element in a double ended queue. PART - B BTL- BTL- Creating Creating 1 Briefly describe the operations of queue with examples. (1) Describe about stack ADT in detail. Explain any one application of stack. (10+) Describe about queue ADT in detail. Explain any one application of queue with suitable example. (10+) R.U, R.S & G.V CS0-PDS I Page 8

9 4 a. Give an algorithm for push and pop operations on stack using a linked list. (8) b. Discuss about addition and deletion operations performed on a circular queue with necessary algorithms. (8) a. Describe the process of postfix expression evaluation with an example. (8) b. Describe the process of conversion from infix expression to postfix expression using stack. (8) a. Write a C Program that checks if expression is correctly parenthesized using stack and illustrate with an example. (1) b. Write the function to examine whether the stack is full() or empty(). (4) Analyze and write a C program to implement queue functions using arrays and macros. (1) 8 Explain prefix, infix and postfix expressions with an example. (1) Write an algorithm to convert an infix expression to a postfix expression. Trace the algorithm to convert the infix expression (a+b)*c/d+e/f to a postfix expression. Justify BTL- Evaluating the need for Infix and Postfix expression. (1) 10 Develop an algorithm to perform the four operations in a double ended queue that is implemented as an array. (1) BTL- Creating 11 Explain circular queue and its implementation. (1) 1 Explain array based implementation of stacks. (8) Explain linked list implementation of stacks. (8) Explain the enqueue and dequeue operations on double ended 1 queues. (8+8) Describe with an example how to evaluate arithmetic expressions using stacks. (1) UNIT V - SORTING, SEARCHING AND HASH TECHNIQUES Sorting algorithms: Insertion sort - Selection sort - Shell sort - Bubble sort - Quick sort - Merge sort - Radix sort Searching: Linear search Binary Search Hashing: Hash Functions Separate Chaining Open Addressing Rehashing Extendible Hashing PART - A Q.N o Questions BT Level Competence 1 What is hashing? Define extendible hashing. What is meant by internal and external sorting? Give any two examples for each type. 4 Name the applications of linear and binary search techniques. Describe the complexity of bubble sort. Identify the advantage of shell sort over insertion sort. Give the time complexities of bubble sort and quick sort. 8 Predict the fastest sorting algorithm, justify. Predict the fastest searching algorithm, Justify. R.U, R.S & G.V CS0-PDS I Page

10 10 Distinguish between linear and binary search technique. 11 Classify the different sorting methods. 1 Illustrate the time complexity of insertion sort with an example. 1 Which hashing technique is best and illustrate with an example? Compare internal and external sorting. 1 Point out the advantages of using quick sort. 1 Compare the working of linear and binary search techniques. 1 Select the best sorting method out of the following - insertion sort, quick sort and merge sort and give BTL- Evaluating justification. 18 Summarize the open addressing hashing method with an example. BTL- Evaluating 1 Develop an algorithm for a quick sort. BTL- Creating 0 Develop a simple C Program for a linear search. BTL- Creating PART - B 1 4 Describe how the divide and conquer technique is implemented in binary search. (1) Describe the algorithm for Insertion sort and sort the following array:,, 44, 11, 88,,, (1) List the different types of hashing techniques? Explain them in detail with an Example. (8+8) a. Interpret the result of inserting the keys,,,, 11, 1, 1,, 4 into an initially empty extendible hashing data structure with M =. (8) b. Discuss the running time of Divide-and-Conquer Merge sort algorithm. (8) Sort the sequence, 1, 4, 1,,,,, using Insertion sort and Describe the routine. (1) Write an algorithm to sort a set of N numbers using quick sort. Demonstrate the algorithm for the following set of numbers: 88,11,,44,,,,,4,10. (8+8) Explain the various collision resolution techniques in detail with an example. (1) 8 Compare the different Sorting methods and discuss about each method in a very detailed Manner. (1) a. Sort the given integers and Explain the intermediate results using shell sort:,1,,,1,4,,,40,. (8) BTL- Evaluating b. Write and Explain a C code to sort an integer array. (8) 10 a. Create a C Code to perform a binary Search. (8) b. Develop an algorithm for Merge sort with an example. (8) BTL- Creating 11 Illustrate a C program to sort the elements using bubble sort. (1) 1 Explain in detail about separate chaining. (1) 1 Explain the rehashing technique with suitable example. (1) Describe the open addressing and chaining methods of collusion resolution techniques in hashing. (1) R.U, R.S & G.V CS0-PDS I Page 10

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LESSON PLAN

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LESSON PLAN ERODE SENGUNTHAR ENGINEERING COLLEGE (Approved by AICTE, New Delhi, Permanently Affiliated to Anna University - Chennai & Accredited by NAAC & National Board of Accreditation (NBA), New Delhi, Accredited

More information

10CS35: Data Structures Using C

10CS35: Data Structures Using C CS35: Data Structures Using C QUESTION BANK REVIEW OF STRUCTURES AND POINTERS, INTRODUCTION TO SPECIAL FEATURES OF C OBJECTIVE: Learn : Usage of structures, unions - a conventional tool for handling a

More information

DATA STRUCTURES USING C

DATA STRUCTURES USING C DATA STRUCTURES USING C QUESTION BANK UNIT I 1. Define data. 2. Define Entity. 3. Define information. 4. Define Array. 5. Define data structure. 6. Give any two applications of data structures. 7. Give

More information

PES Institute of Technology-BSC QUESTION BANK

PES Institute of Technology-BSC QUESTION BANK PES Institute of Technology-BSC Faculty: Mrs. R.Bharathi CS35: Data Structures Using C QUESTION BANK UNIT I -BASIC CONCEPTS 1. What is an ADT? Briefly explain the categories that classify the functions

More information

Krishna Institute of Engineering & Technology, Ghaziabad Department of Computer Application MCA-213 : DATA STRUCTURES USING C

Krishna Institute of Engineering & Technology, Ghaziabad Department of Computer Application MCA-213 : DATA STRUCTURES USING C Tutorial#1 Q 1:- Explain the terms data, elementary item, entity, primary key, domain, attribute and information? Also give examples in support of your answer? Q 2:- What is a Data Type? Differentiate

More information

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++ Answer the following 1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++ 2) Which data structure is needed to convert infix notations to postfix notations? Stack 3) The

More information

Unit 1. 5. Write iterative and recursive C functions to find the greatest common divisor of two integers. [6]

Unit 1. 5. Write iterative and recursive C functions to find the greatest common divisor of two integers. [6] Unit 1 1. Write the following statements in C : [4] Print the address of a float variable P. Declare and initialize an array to four characters a,b,c,d. 2. Declare a pointer to a function f which accepts

More information

Data Structure [Question Bank]

Data Structure [Question Bank] Unit I (Analysis of Algorithms) 1. What are algorithms and how they are useful? 2. Describe the factor on best algorithms depends on? 3. Differentiate: Correct & Incorrect Algorithms? 4. Write short note:

More information

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement?

PART-A Questions. 2. How does an enumerated statement differ from a typedef statement? 1. Distinguish & and && operators. PART-A Questions 2. How does an enumerated statement differ from a typedef statement? 3. What are the various members of a class? 4. Who can access the protected members

More information

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. Course Curriculum. DATA STRUCTURES (Code: 3330704)

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. Course Curriculum. DATA STRUCTURES (Code: 3330704) GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT Course Curriculum DATA STRUCTURES (Code: 3330704) Diploma Programme in which this course is offered Semester in which offered Computer Engineering,

More information

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

KITES TECHNOLOGY COURSE MODULE (C, C++, DS) KITES TECHNOLOGY 360 Degree Solution www.kitestechnology.com/academy.php info@kitestechnology.com technologykites@gmail.com Contact: - 8961334776 9433759247 9830639522.NET JAVA WEB DESIGN PHP SQL, PL/SQL

More information

BCS2B02: OOP Concepts and Data Structures Using C++

BCS2B02: OOP Concepts and Data Structures Using C++ SECOND SEMESTER BCS2B02: OOP Concepts and Data Structures Using C++ Course Number: 10 Contact Hours per Week: 4 (2T + 2P) Number of Credits: 2 Number of Contact Hours: 30 Hrs. Course Evaluation: Internal

More information

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) 3 4 4 7 5 9 6 16 7 8 8 4 9 8 10 4 Total 92.

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) 3 4 4 7 5 9 6 16 7 8 8 4 9 8 10 4 Total 92. Name: Email ID: CSE 326, Data Structures Section: Sample Final Exam Instructions: The exam is closed book, closed notes. Unless otherwise stated, N denotes the number of elements in the data structure

More information

Data Structures. Level 6 C30151. www.fetac.ie. Module Descriptor

Data Structures. Level 6 C30151. www.fetac.ie. Module Descriptor The Further Education and Training Awards Council (FETAC) was set up as a statutory body on 11 June 2001 by the Minister for Education and Science. Under the Qualifications (Education & Training) Act,

More information

Analysis of a Search Algorithm

Analysis of a Search Algorithm CSE 326 Lecture 4: Lists and Stacks 1. Agfgd 2. Dgsdsfd 3. Hdffdsf 4. Sdfgsfdg 5. Tefsdgass We will review: Analysis: Searching a sorted array (from last time) List ADT: Insert, Delete, Find, First, Kth,

More information

Algorithms and Data Structures

Algorithms and Data Structures Algorithms and Data Structures Part 2: Data Structures PD Dr. rer. nat. habil. Ralf-Peter Mundani Computation in Engineering (CiE) Summer Term 2016 Overview general linked lists stacks queues trees 2 2

More information

Questions 1 through 25 are worth 2 points each. Choose one best answer for each.

Questions 1 through 25 are worth 2 points each. Choose one best answer for each. Questions 1 through 25 are worth 2 points each. Choose one best answer for each. 1. For the singly linked list implementation of the queue, where are the enqueues and dequeues performed? c a. Enqueue in

More information

Stacks. Linear data structures

Stacks. Linear data structures Stacks Linear data structures Collection of components that can be arranged as a straight line Data structure grows or shrinks as we add or remove objects ADTs provide an abstract layer for various operations

More information

Module 816. File Management in C. M. Campbell 1993 Deakin University

Module 816. File Management in C. M. Campbell 1993 Deakin University M. Campbell 1993 Deakin University Aim Learning objectives Content After working through this module you should be able to create C programs that create an use both text and binary files. After working

More information

Module 2 Stacks and Queues: Abstract Data Types

Module 2 Stacks and Queues: Abstract Data Types Module 2 Stacks and Queues: Abstract Data Types A stack is one of the most important and useful non-primitive linear data structure in computer science. It is an ordered collection of items into which

More information

BSc (Hons) Business Information Systems, BSc (Hons) Computer Science with Network Security. & BSc. (Hons.) Software Engineering

BSc (Hons) Business Information Systems, BSc (Hons) Computer Science with Network Security. & BSc. (Hons.) Software Engineering BSc (Hons) Business Information Systems, BSc (Hons) Computer Science with Network Security & BSc. (Hons.) Software Engineering Cohort: BIS/05/FT BCNS/05/FT BSE/05/FT Examinations for 2005-2006 / Semester

More information

The C Programming Language course syllabus associate level

The C Programming Language course syllabus associate level TECHNOLOGIES The C Programming Language course syllabus associate level Course description The course fully covers the basics of programming in the C programming language and demonstrates fundamental programming

More information

Java Software Structures

Java Software Structures INTERNATIONAL EDITION Java Software Structures Designing and Using Data Structures FOURTH EDITION John Lewis Joseph Chase This page is intentionally left blank. Java Software Structures,International Edition

More information

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM. Course Title: Advanced Computer Programming (Code: 3320702)

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM. Course Title: Advanced Computer Programming (Code: 3320702) GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM Course Title: Advanced Computer Programming (Code: 3320702) Diploma Programmes in which this course is offered Computer Engineering,

More information

UNIVERSITY OF MUMBAI. Revised syllabus for F.Y.BSc. Computer Science to be implemented. from

UNIVERSITY OF MUMBAI. Revised syllabus for F.Y.BSc. Computer Science to be implemented. from UNIVERSITY OF MUMBAI Revised syllabus for F.Y.BSc. Computer Science to be implemented from 2008-2009 Proposed syllabus and examination scheme for F.Y.B.Sc. Computer Science (Theory and Practical) from

More information

Introduction to Data Structures

Introduction to Data Structures Introduction to Data Structures Albert Gural October 28, 2011 1 Introduction When trying to convert from an algorithm to the actual code, one important aspect to consider is how to store and manipulate

More information

Bangalore University B.Sc Computer Science Syllabus ( Semester System)

Bangalore University B.Sc Computer Science Syllabus ( Semester System) Bangalore University B.Sc Computer Science Syllabus ( Semester System) First Semester CSIT1: Computer Fundamentals and C Programming CSIP1: C Programming Lab Second Semester CSIIT1: Data Structures and

More information

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes.

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes. 1. The advantage of.. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists. [A] Lists [B] Linked Lists [A] Trees [A] Queues 2. The

More information

Tutorial on C Language Programming

Tutorial on C Language Programming Tutorial on C Language Programming Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science Introduction to System Software p.1/64 Tutorial on C programming C program structure:

More information

Syllabus for Computer Science. Proposed scheme for B.Sc Programme under Choice Based Credit System

Syllabus for Computer Science. Proposed scheme for B.Sc Programme under Choice Based Credit System Syllabus for Computer Science Proposed scheme for B.Sc Programme under Choice Based Credit System SEMESTER - I Code Course Title Course Type HPW Credits BS106 SEMESTER -I I BS 206 SEMESTER -III BS 301

More information

Linked Lists, Stacks, Queues, Deques. It s time for a chainge!

Linked Lists, Stacks, Queues, Deques. It s time for a chainge! Linked Lists, Stacks, Queues, Deques It s time for a chainge! Learning Goals After this unit, you should be able to... Differentiate an abstraction from an implementation. Define and give examples of problems

More information

Abstract Data Type. EECS 281: Data Structures and Algorithms. The Foundation: Data Structures and Abstract Data Types

Abstract Data Type. EECS 281: Data Structures and Algorithms. The Foundation: Data Structures and Abstract Data Types EECS 281: Data Structures and Algorithms The Foundation: Data Structures and Abstract Data Types Computer science is the science of abstraction. Abstract Data Type Abstraction of a data structure on that

More information

Lecture 11 Doubly Linked Lists & Array of Linked Lists. Doubly Linked Lists

Lecture 11 Doubly Linked Lists & Array of Linked Lists. Doubly Linked Lists Lecture 11 Doubly Linked Lists & Array of Linked Lists In this lecture Doubly linked lists Array of Linked Lists Creating an Array of Linked Lists Representing a Sparse Matrix Defining a Node for a Sparse

More information

1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D.

1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D. 1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D. base address 2. The memory address of fifth element of an array can be calculated

More information

Sample Questions Csci 1112 A. Bellaachia

Sample Questions Csci 1112 A. Bellaachia Sample Questions Csci 1112 A. Bellaachia Important Series : o S( N) 1 2 N N i N(1 N) / 2 i 1 o Sum of squares: N 2 N( N 1)(2N 1) N i for large N i 1 6 o Sum of exponents: N k 1 k N i for large N and k

More information

C++ Programming Language

C++ Programming Language C++ Programming Language Lecturer: Yuri Nefedov 7th and 8th semesters Lectures: 34 hours (7th semester); 32 hours (8th semester). Seminars: 34 hours (7th semester); 32 hours (8th semester). Course abstract

More information

ASCII Encoding. The char Type. Manipulating Characters. Manipulating Characters

ASCII Encoding. The char Type. Manipulating Characters. Manipulating Characters The char Type ASCII Encoding The C char type stores small integers. It is usually 8 bits. char variables guaranteed to be able to hold integers 0.. +127. char variables mostly used to store characters

More information

7.1 Our Current Model

7.1 Our Current Model Chapter 7 The Stack In this chapter we examine what is arguably the most important abstract data type in computer science, the stack. We will see that the stack ADT and its implementation are very simple.

More information

Data Structures Using C++ 2E. Chapter 5 Linked Lists

Data Structures Using C++ 2E. Chapter 5 Linked Lists Data Structures Using C++ 2E Chapter 5 Linked Lists Doubly Linked Lists Traversed in either direction Typical operations Initialize the list Destroy the list Determine if list empty Search list for a given

More information

Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010

Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010 Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010 Problem 1. In each of the following question, please specify if the statement

More information

MAX = 5 Current = 0 'This will declare an array with 5 elements. Inserting a Value onto the Stack (Push) -----------------------------------------

MAX = 5 Current = 0 'This will declare an array with 5 elements. Inserting a Value onto the Stack (Push) ----------------------------------------- =============================================================================================================================== DATA STRUCTURE PSEUDO-CODE EXAMPLES (c) Mubashir N. Mir - www.mubashirnabi.com

More information

Sources: On the Web: Slides will be available on:

Sources: On the Web: Slides will be available on: C programming Introduction The basics of algorithms Structure of a C code, compilation step Constant, variable type, variable scope Expression and operators: assignment, arithmetic operators, comparison,

More information

Illustration 1: Diagram of program function and data flow

Illustration 1: Diagram of program function and data flow The contract called for creation of a random access database of plumbing shops within the near perimeter of FIU Engineering school. The database features a rating number from 1-10 to offer a guideline

More information

AP Computer Science AB Syllabus 1

AP Computer Science AB Syllabus 1 AP Computer Science AB Syllabus 1 Course Resources Java Software Solutions for AP Computer Science, J. Lewis, W. Loftus, and C. Cocking, First Edition, 2004, Prentice Hall. Video: Sorting Out Sorting,

More information

COMPUTER SCIENCE. Paper 1 (THEORY)

COMPUTER SCIENCE. Paper 1 (THEORY) COMPUTER SCIENCE Paper 1 (THEORY) (Three hours) Maximum Marks: 70 (Candidates are allowed additional 15 minutes for only reading the paper. They must NOT start writing during this time) -----------------------------------------------------------------------------------------------------------------------

More information

C Interview Questions

C Interview Questions http://techpreparation.com C Interview Questions And Answers 2008 V i s i t T e c h P r e p a r a t i o n. c o m f o r m o r e i n t e r v i e w q u e s t i o n s a n d a n s w e r s C Interview Questions

More information

Basic Programming and PC Skills: Basic Programming and PC Skills:

Basic Programming and PC Skills: Basic Programming and PC Skills: Texas University Interscholastic League Contest Event: Computer Science The contest challenges high school students to gain an understanding of the significance of computation as well as the details of

More information

Objected oriented Programming: C++ Unit 1 1. Introduction 1.1. Introduction to Object Oriented Programming. 1.2. C++ fundamentals.

Objected oriented Programming: C++ Unit 1 1. Introduction 1.1. Introduction to Object Oriented Programming. 1.2. C++ fundamentals. Gujarat University Choice Based Credit System (CBCS) Syllabus for B. Sc. Semester III (Computer Science) COM 201: DATA STRUCTURE USING C++ (Theory) Hours: 4 /week Credits: 4 Objected oriented Programming:

More information

Lecture 12 Doubly Linked Lists (with Recursion)

Lecture 12 Doubly Linked Lists (with Recursion) Lecture 12 Doubly Linked Lists (with Recursion) In this lecture Introduction to Doubly linked lists What is recursion? Designing a node of a DLL Recursion and Linked Lists o Finding a node in a LL (recursively)

More information

CHAPTER 4 ESSENTIAL DATA STRUCTRURES

CHAPTER 4 ESSENTIAL DATA STRUCTRURES CHAPTER 4 ESSENTIAL DATA STRUCTURES 72 CHAPTER 4 ESSENTIAL DATA STRUCTRURES In every algorithm, there is a need to store data. Ranging from storing a single value in a single variable, to more complex

More information

ML for the Working Programmer

ML for the Working Programmer ML for the Working Programmer 2nd edition Lawrence C. Paulson University of Cambridge CAMBRIDGE UNIVERSITY PRESS CONTENTS Preface to the Second Edition Preface xiii xv 1 Standard ML 1 Functional Programming

More information

Quiz 4 Solutions EECS 211: FUNDAMENTALS OF COMPUTER PROGRAMMING II. 1 Q u i z 4 S o l u t i o n s

Quiz 4 Solutions EECS 211: FUNDAMENTALS OF COMPUTER PROGRAMMING II. 1 Q u i z 4 S o l u t i o n s Quiz 4 Solutions Q1: What value does function mystery return when called with a value of 4? int mystery ( int number ) { if ( number

More information

Chapter 3: Restricted Structures Page 1

Chapter 3: Restricted Structures Page 1 Chapter 3: Restricted Structures Page 1 1 2 3 4 5 6 7 8 9 10 Restricted Structures Chapter 3 Overview Of Restricted Structures The two most commonly used restricted structures are Stack and Queue Both

More information

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection

More information

Common Data Structures

Common Data Structures Data Structures 1 Common Data Structures Arrays (single and multiple dimensional) Linked Lists Stacks Queues Trees Graphs You should already be familiar with arrays, so they will not be discussed. Trees

More information

Stack & Queue. Darshan Institute of Engineering & Technology. Explain Array in detail. Row major matrix No of Columns = m = u2 b2 + 1

Stack & Queue. Darshan Institute of Engineering & Technology. Explain Array in detail. Row major matrix No of Columns = m = u2 b2 + 1 Stack & Queue Explain Array in detail One Dimensional Array Simplest data structure that makes use of computed address to locate its elements is the onedimensional array or vector; number of memory locations

More information

B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011

B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011 NEW Detailed Syllabus of B.Sc.(Computer Science) and B.Sc.(IT) Effective From July 2011 SEMESTER SYSTEM Scheme & Syllabus for B.Sc. (CS) Pass and Hons. Course Effective from July 2011 and onwards CLASS

More information

Introduction to Programming System Design. CSCI 455x (4 Units)

Introduction to Programming System Design. CSCI 455x (4 Units) Introduction to Programming System Design CSCI 455x (4 Units) Description This course covers programming in Java and C++. Topics include review of basic programming concepts such as control structures,

More information

Data Structures and Algorithms V22.0102. Otávio Braga

Data Structures and Algorithms V22.0102. Otávio Braga Data Structures and Algorithms V22.0102 Otávio Braga We use a stack When an operand is read, output it When an operator is read Pop until the top of the stack has an element of lower precedence Then push

More information

As previously noted, a byte can contain a numeric value in the range 0-255. Computers don't understand Latin, Cyrillic, Hindi, Arabic character sets!

As previously noted, a byte can contain a numeric value in the range 0-255. Computers don't understand Latin, Cyrillic, Hindi, Arabic character sets! Encoding of alphanumeric and special characters As previously noted, a byte can contain a numeric value in the range 0-255. Computers don't understand Latin, Cyrillic, Hindi, Arabic character sets! Alphanumeric

More information

Atmiya Infotech Pvt. Ltd. Data Structure. By Ajay Raiyani. Yogidham, Kalawad Road, Rajkot. Ph : 572365, 576681 1

Atmiya Infotech Pvt. Ltd. Data Structure. By Ajay Raiyani. Yogidham, Kalawad Road, Rajkot. Ph : 572365, 576681 1 Data Structure By Ajay Raiyani Yogidham, Kalawad Road, Rajkot. Ph : 572365, 576681 1 Linked List 4 Singly Linked List...4 Doubly Linked List...7 Explain Doubly Linked list: -...7 Circular Singly Linked

More information

To My Parents -Laxmi and Modaiah. To My Family Members. To My Friends. To IIT Bombay. To All Hard Workers

To My Parents -Laxmi and Modaiah. To My Family Members. To My Friends. To IIT Bombay. To All Hard Workers To My Parents -Laxmi and Modaiah To My Family Members To My Friends To IIT Bombay To All Hard Workers Copyright 2010 by CareerMonk.com All rights reserved. Designed by Narasimha Karumanchi Printed in

More information

Data Structure with C

Data Structure with C Subject: Data Structure with C Topic : Tree Tree A tree is a set of nodes that either:is empty or has a designated node, called the root, from which hierarchically descend zero or more subtrees, which

More information

Lecture 2: Data Structures Steven Skiena. http://www.cs.sunysb.edu/ skiena

Lecture 2: Data Structures Steven Skiena. http://www.cs.sunysb.edu/ skiena Lecture 2: Data Structures Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena String/Character I/O There are several approaches

More information

The following themes form the major topics of this chapter: The terms and concepts related to trees (Section 5.2).

The following themes form the major topics of this chapter: The terms and concepts related to trees (Section 5.2). CHAPTER 5 The Tree Data Model There are many situations in which information has a hierarchical or nested structure like that found in family trees or organization charts. The abstraction that models hierarchical

More information

St S a t ck a ck nd Qu Q eue 1

St S a t ck a ck nd Qu Q eue 1 Stack and Queue 1 Stack Data structure with Last-In First-Out (LIFO) behavior In Out C B A B C 2 Typical Operations Pop on Stack Push isempty: determines if the stack has no elements isfull: determines

More information

Symbol Tables. Introduction

Symbol Tables. Introduction Symbol Tables Introduction A compiler needs to collect and use information about the names appearing in the source program. This information is entered into a data structure called a symbol table. The

More information

File Handling. What is a file?

File Handling. What is a file? File Handling 1 What is a file? A named collection of data, stored in secondary storage (typically). Typical operations on files: Open Read Write Close How is a file stored? Stored as sequence of bytes,

More information

Lab Manual. Data Structures (Pr): COT-213 Data Structures (P): IT-215

Lab Manual. Data Structures (Pr): COT-213 Data Structures (P): IT-215 Lab Manual Data Structures (Pr): COT-213 Data Structures (P): IT-215 !" #$%&'() * +, -. 951/6201617535973417*37311 235678976: ;7A

More information

University of Pune Revised Structure for the B. Sc. (Computer Science) Course (Second Year to be implemented from Academic Year 2014-2015)

University of Pune Revised Structure for the B. Sc. (Computer Science) Course (Second Year to be implemented from Academic Year 2014-2015) University of Pune Revised Structure for the B. Sc. (Computer Science) Course (Second Year to be implemented from Academic Year 2014-2015) S. Y. B. Sc. (Computer Science) No Paper Title: Semester I Title:

More information

Introduction to Data Structures and Algorithms

Introduction to Data Structures and Algorithms Introduction to Data Structures and Algorithms Chapter: Elementary Data Structures(1) Lehrstuhl Informatik 7 (Prof. Dr.-Ing. Reinhard German) Martensstraße 3, 91058 Erlangen Overview on simple data structures

More information

Binary Heap Algorithms

Binary Heap Algorithms CS Data Structures and Algorithms Lecture Slides Wednesday, April 5, 2009 Glenn G. Chappell Department of Computer Science University of Alaska Fairbanks CHAPPELLG@member.ams.org 2005 2009 Glenn G. Chappell

More information

CSE373: Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks/Queues. Linda Shapiro Spring 2016

CSE373: Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks/Queues. Linda Shapiro Spring 2016 CSE373: Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks/Queues Linda Shapiro Registration We have 180 students registered and others who want to get in. If you re thinking of dropping

More information

1. Relational database accesses data in a sequential form. (Figures 7.1, 7.2)

1. Relational database accesses data in a sequential form. (Figures 7.1, 7.2) Chapter 7 Data Structures for Computer Graphics (This chapter was written for programmers - option in lecture course) Any computer model of an Object must comprise three different types of entities: 1.

More information

Data Structures Using C++ 2E. Chapter 5 Linked Lists

Data Structures Using C++ 2E. Chapter 5 Linked Lists Data Structures Using C++ 2E Chapter 5 Linked Lists Test #1 Next Thursday During Class Cover through (near?) end of Chapter 5 Objectives Learn about linked lists Become aware of the basic properties of

More information

CompuScholar, Inc. Alignment to Utah's Computer Programming II Standards

CompuScholar, Inc. Alignment to Utah's Computer Programming II Standards CompuScholar, Inc. Alignment to Utah's Computer Programming II Standards Course Title: TeenCoder: Java Programming Course ISBN: 978 0 9887070 2 3 Course Year: 2015 Note: Citation(s) listed may represent

More information

I PUC - Computer Science. Practical s Syllabus. Contents

I PUC - Computer Science. Practical s Syllabus. Contents I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations

More information

Chapter One Introduction to Programming

Chapter One Introduction to Programming Chapter One Introduction to Programming 1-1 Algorithm and Flowchart Algorithm is a step-by-step procedure for calculation. More precisely, algorithm is an effective method expressed as a finite list of

More information

Database Programming with PL/SQL: Learning Objectives

Database Programming with PL/SQL: Learning Objectives Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs

More information

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV UNIT I THE 8086 MICROPROCESSOR 1. What is the purpose of segment registers

More information

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks UNIVERSITY OF KERALA First Degree Programme in Computer Applications Model Question Paper Semester I Course Code- CP 1121 Introduction to Computer Science TIME : 3 hrs Maximum Mark: 80 SECTION A [Very

More information

1 Abstract Data Types Information Hiding

1 Abstract Data Types Information Hiding 1 1 Abstract Data Types Information Hiding 1.1 Data Types Data types are an integral part of every programming language. ANSI-C has int, double and char to name just a few. Programmers are rarely content

More information

Linked Lists Linked Lists, Queues, and Stacks

Linked Lists Linked Lists, Queues, and Stacks Linked Lists Linked Lists, Queues, and Stacks CSE 10: Introduction to C Programming Fall 200 Dynamic data structure Size is not fixed at compile time Each element of a linked list: holds a value points

More information

QUEUES. Primitive Queue operations. enqueue (q, x): inserts item x at the rear of the queue q

QUEUES. Primitive Queue operations. enqueue (q, x): inserts item x at the rear of the queue q QUEUES A queue is simply a waiting line that grows by adding elements to its end and shrinks by removing elements from the. Compared to stack, it reflects the more commonly used maxim in real-world, namely,

More information

A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION

A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION Tao Chen 1, Tarek Sobh 2 Abstract -- In this paper, a software application that features the visualization of commonly used

More information

C++ INTERVIEW QUESTIONS

C++ INTERVIEW QUESTIONS C++ INTERVIEW QUESTIONS http://www.tutorialspoint.com/cplusplus/cpp_interview_questions.htm Copyright tutorialspoint.com Dear readers, these C++ Interview Questions have been designed specially to get

More information

Chapter 8: Bags and Sets

Chapter 8: Bags and Sets Chapter 8: Bags and Sets In the stack and the queue abstractions, the order that elements are placed into the container is important, because the order elements are removed is related to the order in which

More information

Class Overview. CSE 326: Data Structures. Goals. Goals. Data Structures. Goals. Introduction

Class Overview. CSE 326: Data Structures. Goals. Goals. Data Structures. Goals. Introduction Class Overview CSE 326: Data Structures Introduction Introduction to many of the basic data structures used in computer software Understand the data structures Analyze the algorithms that use them Know

More information

Glossary of Object Oriented Terms

Glossary of Object Oriented Terms Appendix E Glossary of Object Oriented Terms abstract class: A class primarily intended to define an instance, but can not be instantiated without additional methods. abstract data type: An abstraction

More information

Review of Hashing: Integer Keys

Review of Hashing: Integer Keys CSE 326 Lecture 13: Much ado about Hashing Today s munchies to munch on: Review of Hashing Collision Resolution by: Separate Chaining Open Addressing $ Linear/Quadratic Probing $ Double Hashing Rehashing

More information

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C 1 An essential part of any embedded system design Programming 2 Programming in Assembly or HLL Processor and memory-sensitive

More information

COMPUTER SCIENCE (5651) Test at a Glance

COMPUTER SCIENCE (5651) Test at a Glance COMPUTER SCIENCE (5651) Test at a Glance Test Name Computer Science Test Code 5651 Time Number of Questions Test Delivery 3 hours 100 selected-response questions Computer delivered Content Categories Approximate

More information

An Introduction to Programming and Computer Science

An Introduction to Programming and Computer Science An Introduction to Programming and Computer Science Maria Litvin Phillips Academy, Andover, Massachusetts Gary Litvin Skylight Software, Inc. Skylight Publishing Andover, Massachusetts Copyright 1998 by

More information

1. Define: (a) Variable, (b) Constant, (c) Type, (d) Enumerated Type, (e) Identifier.

1. Define: (a) Variable, (b) Constant, (c) Type, (d) Enumerated Type, (e) Identifier. Study Group 1 Variables and Types 1. Define: (a) Variable, (b) Constant, (c) Type, (d) Enumerated Type, (e) Identifier. 2. What does the byte 00100110 represent? 3. What is the purpose of the declarations

More information

ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology)

ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology) ALLIED PAPER : DISCRETE MATHEMATICS (for B.Sc. Computer Technology & B.Sc. Multimedia and Web Technology) Subject Description: This subject deals with discrete structures like set theory, mathematical

More information

Data Structures Fibonacci Heaps, Amortized Analysis

Data Structures Fibonacci Heaps, Amortized Analysis Chapter 4 Data Structures Fibonacci Heaps, Amortized Analysis Algorithm Theory WS 2012/13 Fabian Kuhn Fibonacci Heaps Lacy merge variant of binomial heaps: Do not merge trees as long as possible Structure:

More information

Tables so far. set() get() delete() BST Average O(lg n) O(lg n) O(lg n) Worst O(n) O(n) O(n) RB Tree Average O(lg n) O(lg n) O(lg n)

Tables so far. set() get() delete() BST Average O(lg n) O(lg n) O(lg n) Worst O(n) O(n) O(n) RB Tree Average O(lg n) O(lg n) O(lg n) Hash Tables Tables so far set() get() delete() BST Average O(lg n) O(lg n) O(lg n) Worst O(n) O(n) O(n) RB Tree Average O(lg n) O(lg n) O(lg n) Worst O(lg n) O(lg n) O(lg n) Table naïve array implementation

More information