Tuesday 6 November 2018

STRUCTURED ENQUIRY FOR 3RD AND 5TH SEM

STRUCTURED ENQUIRY

MARKS BASED ON FOLLOWING:
1. DEMONSTRATION / EXECUTION OF PROGRAM(S) TO RESPECTIVE STAFF.

2. REPORT OF 10-20 PAGES PER TEAM, WITH FOLLOWING CONTENTS:
     - FRONT PAGE
     - CERTIFICATE
     - CHAPTERS - 1. INTRODUCTION, 2. PROBLEM STATEMENT, 3. ANALYSIS, 4. DESIGN, 5. IMPLEMENTATION, 6. RESULT AND OUTCOMES.

FONT - TIMES NEW ROMAN.
FONT SIZE: CHAPTER NAME - 18, HEADING - 16, SUB HEADING - 14, CONTENT - 12.
LINE SPACING - 1.5


1. Design a Program to store the details of a function call as a frame of data. Data in a frame should include function name, return type, arguments passed to a function. Maintain the starting address of every frame. Find out appropriate data structures to be used to solve the problem. If appropriate data structure found, implement the program, if not, justify your answer why the following data structure cannot be used to implement. (Analyze using Stack, Queue, Linked List (singly/doubly), Tree, Heap).


2. Consider a mouse trapped in a maze, trying to find the exit:
This mouse can only move right, left, down, or up—one step at a time. It applies the following procedure:

-> Try moving right, left, down, and up If a route beginning with any one of these fails,
-> Try a new route that starts in an untried direction.
The maze is implemented as a 2D array of char’s. 1 = wall,  0 = open, m = mouse’s initial position, e = exit (could be anywhere),  .(dot) = visited location. We assume the boundaries of the array are walls.
Find out appropriate data structure to be used to solve the problem. If appropriate data structure found, implement the program, if not, justify your answer why the following data structure cannot be used to implement. (Analyze using Stack, Queue, Linked List (singly/doubly), Tree, Heap).


3. Design an input restricted double ended queue for which only the operations removeleft, removeright, and insertleft are valid. And an output restricted double ended queue for which only removeleft, insertleft and insertright are valid.
Find out appropriate data structures to be used to solve the problem. If appropriate data structure found, implement the program, if not, justify your answer why the following data structure cannot be used to implement. (Analyze using Stack, Queue, Linked List (singly/doubly), Tree, Heap).


4. Design a C program to simulate a simple multiuser computer system as follows: Each user has unique ID and wishes to perform a number of transactions on the computer. Only one transaction may be processed by the computer at any given moment. Each input line represents a single user and contains user's ID followed by a starting time and a series of integers representing the duration of each of his or her transactions. The input is sorted by increasing starting time, and all the times and durations are in seconds. Assume a user does not request time for a transaction until the previous transaction is complete and computer accepts transactions based on First Come First Served basis. The program should simulate system and print a message containing user ID and time whenever a transaction begins and ends. At the end of simulation it should print the average waiting time for a transaction. ( Waiting time is amount of time between time that the transaction was requested and time it was started).
Find out appropriate data structures to be used to solve the problem. If appropriate data structure found, implement the program, if not, justify your answer why the following data structure cannot be used to implement. (Analyze using Stack, Queue, Linked List (singly/doubly), Tree, Heap, sorting algorithms). Justify your solution.


5. Design a program to implement a polynomial equation having 3 variables (x, y and z). Each node should represent a term and should contain the powers of x, y and z as well as coefficient of that term. Program should have following functions:
a. Add two such polynomials.
b. Multiply two such polynomials.
c. Take partial derivative of such polynomial with respect to any of its variables.
d. Evaluate such polynomial for given values of x, y and z.
e. Divide one such polynomial by another, creating a quotient polynomial.
f. Print the representation of such a polynomial.
Find out appropriate data structures to be used to solve the problem. If appropriate data structure found, implement the program, if not, justify your answer why the following data structure cannot be used to implement. (Analyze using Stack, Queue, Linked List (singly/doubly), Tree, Heap, sorting algorithms). Justify your solution.


6. Design a C program to perform following operations on a binary tree.
a. Accept a pointer to a node and return TRUE if that node is root of valid tree and FALSE     otherwise.
b. Accept a pointer to a node of a tree, and return level of that node in the tree.
c. Accept pointer to a tree and return a pointer to a new tree that is mirror image of the first       tree ( i.e. all left sub trees are now right subtrees and vice versa).
Find out appropriate data structures to be used to solve the problem. If appropriate data structure found, implement the program, if not, justify your answer why the following data structure cannot be used to implement. (Analyze using Stack, Queue, Linked List (singly/doubly), Tree, Heap, sorting algorithms). Justify your solution.


TEAMS
                3A                                                            3B
NOROLL NOS.ROLL NOS.
11 to 773 to 79
28 to 1380 to 86
314 to 1987 to 94
420 to 2695 to 102
527 to 33103 to 110
634 to 39111 to 119
140 to 47121 TO 127
248 to 56128 TO 134
357 to 62135 TO 141
463 to 68142 TO 154
5

25, 43, 51, 69 to 72


155 TO 160



TEAMS FOR SE
5A DIV5B DIV
NoROLL NOS.ROLL NOS.
11 to 673-77
27 to 1378-82
314 to 1983-87
420 to 2588-92
526 to 3193-98
632 to 3799-103
138 to 43104-122
244 to 49123-128
350 to 55129-134
456 to 61135-144
562 to 67----- 

No comments:

Post a Comment

INFIX TO POSTFIX C PGM

infix to postfix c pgm. CLICK HERE