Docsity

Data structure & algorithm brief, Assignments of Data Structures and Algorithms

Toggle sidebar
bg1
EDEXCEL BTEC HIGHER NATIONAL DIPLOMA IN COMPUTING AND SYSTEMS DEVELOPMENT
ASSIGNMENT BRIEF
ASSIGNMENT CONTEXT / SCENARIO:
You have been working as solution architect for last 10 years and there is a supply chain
problem with a steel mill client. The client gets 2 type of orders.
Critical – coded “red”
Normal – coded “green”
The normal orders need to observe a FIFO chain order however, the critical ones need to be
sorted on ID and should have very quick search and retrieval action available. When a critical
order comes then it has to be treated in LIFO manner.
So this is what needs to happen :
A ) The normal orders should be pushed in a Queue and should be treated in FIFO manner.
B ) The Critical ones should be treated in LIFO manner and on top of that they need to be
stored in a Binary tree in sorted condition for easy search and inquiry.
C ) So whenever there is a Critical order pending, then the critical order stack should be
used otherwise the FIFO Queue should take priority.
D ) Whenever a critical order is placed, it goes through assembly line which process the
order in recursive manners till a coil like structure is ready to ship. The process is repeated
till the coil width is of 10 cm radius.
E ) These coils are sorted by length and are made ready for ship. The longer they are, more
complex is the loading, so sorting is very important function.
F ) Once the trucks are ready, then they also need the shortest paths to the destinations.
For that you are also required to map the clients, the routes and come up with the shortest
available path in terms of milage and time. If the order is critical, then it needs to be
delivered in the least time possible. If it is a normal order then shortest distance path is
needed.
The following tasks need to be performed :
1 ) Write design specification of following ADT’s :
- Queue
- Stack
These are used in handling of the normal and critical orders.
2 ) Write Psedu code for the following ADT’s :
- Stack
3 ) Discuss stack operations in case of recursive function calls during the assembly line
operations.
pf2

Partial preview of the text

Download Data structure & algorithm brief and more Assignments Data Structures and Algorithms in PDF only on Docsity!

EDEXCEL BTEC HIGHER NATIONAL DIPLOMA IN COMPUTING AND SYSTEMS DEVELOPMENT

ASSIGNMENT BRIEF

ASSIGNMENT CONTEXT / SCENARIO: You have been working as solution architect for last 10 years and there is a supply chain problem with a steel mill client. The client gets 2 type of orders. Critical – coded “red” Normal – coded “green” The normal orders need to observe a FIFO chain order however, the critical ones need to be sorted on ID and should have very quick search and retrieval action available. When a critical order comes then it has to be treated in LIFO manner. So this is what needs to happen : A ) The normal orders should be pushed in a Queue and should be treated in FIFO manner. B ) The Critical ones should be treated in LIFO manner and on top of that they need to be stored in a Binary tree in sorted condition for easy search and inquiry. C ) So whenever there is a Critical order pending, then the critical order stack should be used otherwise the FIFO Queue should take priority. D ) Whenever a critical order is placed, it goes through assembly line which process the order in recursive manners till a coil like structure is ready to ship. The process is repeated till the coil width is of 10 cm radius. E ) These coils are sorted by length and are made ready for ship. The longer they are, more complex is the loading, so sorting is very important function. F ) Once the trucks are ready, then they also need the shortest paths to the destinations. For that you are also required to map the clients, the routes and come up with the shortest available path in terms of milage and time. If the order is critical, then it needs to be delivered in the least time possible. If it is a normal order then shortest distance path is needed. The following tasks need to be performed : 1 ) Write design specification of following ADT’s :

  • Queue
  • Stack These are used in handling of the normal and critical orders. 2 ) Write Psedu code for the following ADT’s :
  • Stack 3 ) Discuss stack operations in case of recursive function calls during the assembly line operations.

EDEXCEL BTEC HIGHER NATIONAL DIPLOMA IN COMPUTING AND SYSTEMS DEVELOPMENT To achieve a PASS, learner must fulfill ALL outcomes and tasks mentioned Learning Outcomes Passing Criteria Tasks required to complete outcomes LO1 Examine abstract data types, concrete data structures and algorithms P Create a design specification for data structures explaining the valid operations that can be carried out on the structures (Stack, Queue, and Binary Tree) P2 (^) used to implement function calls in a computerDetermine the operations of a memory stack and how it is LO2 Specify abstract data types and algorithms in a formal notation P3 Using an imperative definition, specify the abstract data type for a stack NOTE TO LEARNERS:

  • If you plagiarize, your grade can be reduced to zero & you could be excluded from the course.
  • Check submission dates and instructions given with the assignment. Late assignments will not be accepted.
  • Ensure that you give yourself enough time to complete the assignment by the due date.
  • Do not leave things such as printing to the last minute – excuses of this nature will not be accepted.
  • You must take responsibility for managing your own time effectively.
  • If you cannot hand in an assignment on time, you may apply (in writing with valid reasons) for an extension.
  • Failure to achieve a PASS grade will results in a REFERRAL grade being given.
  • Take great care that if you use other people’s work / ideas in your assignment, you must properly reference them in your text and in any bibliography Name & Signature of Assessor: _________________________________________________Date:_______________________________________________ To achieve a MERIT/ DISTINCTION, learner must fulfill ALL outcomes / tasks mentioned Grading Criteria / Descriptors for Merit Grading Criteria / Descriptors for Distinction LO M Illustrate, with an example, a concrete data structure for a FIFO Queue D Analyse the operations, using illustrations, of two network shortest path algorithms, providing an example of each LO M Compare the performance of the two sorting algorithms (Bubble sort vs. Insertion sort) LO M Examine the advantages of encapsulation and information hiding when using an ADT D 2 Discuss the view that imperative ADTs are a basis of object orientation and, with justification, state whether you agree