









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Learner’s name : Nguyen Tri Tai Assessor name : Le Ngoc Thanh Class : GCS0903A Learner’s ID : GCS Subject’s ID : 1649 Assignment submitted : 12/06/
Grading grid P1 P2 P3 M1 M2 M3 D1 D Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 19: Data Structures and Algorithms Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Nguyễn Trí Tài Student ID GCS Class GCS0903A Assessor name Lê Ngọc Thành Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Tai
Qualification BTEC Level 5 HND Diploma in Business Unit number Unit 19: Data Structures and Algorithms Assignment title Examine and specify ADT and DSA Academic Year Unit Tutor Issue date Submission date IV name and date Submission Format: Format: The submission is in the form of an individual written report and a presentation. This should be written in a concise, formal business style using single spacing and font size 12. You are required to make use of headings, paragraphs and subsections as appropriate, and all work must be supported with research and referenced using the Harvard referencing system. Please also provide a bibliography using the Harvard referencing system. Submission Students are compulsory to submit the assignment in due date and in a way requested by the Tutors. The form of submission will be a soft copy in PDF posted on corresponding course of http://cms.greenwich.edu.vn/ Note: The Assignment must be your own work, and not copied by or from another student or from books etc. If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. Make sure that you know how to reference properly, and that understand the guidelines on plagiarism. If you do not, you definitely get fail Assignment Brief and Guidance: Scenario : You work as in-house software developer for Softnet Development Ltd, a software body-shop providing network provisioning solutions. Your company is part of a collaborative service provisioning development project and your company has won the contract to design and develop a middleware solution that will interface at the front-end to multiple computer provisioning interfaces including SOAP, HTTP, JML and CLI, and the back-end telecom provisioning network via CLI. Your account manager has assigned you a special role that is to inform your team about designing and implementing abstract data types. You have been asked to create a presentation for all collaborating partners
on how ADTs can be utilised to improve software design, development and testing. Further, you have been asked to write an introductory report for distribution to all partners on how to specify abstract data types and algorithms in a formal notation. Tasks Part 1 You will need to prepare a presentation on how to create a design specification for data structures, explaining the valid operations that can be carried out on the structures using the example of: A stack ADT, a concrete data structure for a First In First out (FIFO) queue. Two sorting algorithms. Two network shortest path algorithms. Part 2 You will need to provide a formal written report that includes the following: Explanation on how to specify an abstract data type using the example of software stack. Explanation of the advantages of encapsulation and information hiding when using an ADT. Discussion of imperative ADTs with regard to object orientation. Learning Outcomes and Assessment Criteria Pass Merit Distinction LO1 Examine abstract data types, concrete data structures and algorithms D1 Analyse the operation, using illustrations, of two network shortest path algorithms, providing an example of each. P1 Create a design specification for data structures explaining the valid operations that can be carried out on the structures. P2 Determine the operations of a memory stack and how it is used to implement function calls in a computer. M1 Illustrate, with an example, a concrete data structure for a First In First out (FIFO) queue. M2 Compare the performance of two sorting algorithms. LO2 Specify abstract data types and algorithms in a formal notation D2 Discuss the view that imperative ADTs are a basis for
A. Introduction: In this assignment, I'll create a Design Specification for a Data Structure that describes the legitimate operations that may be done on the structure. Following that, I'll explain how the memory stack works and how it's utilized in computers to make function calls. Finally, I will describe the abstract data type for a software stack using an imperative description. B. Abstract data type (P1): I.Definition: An abstract data type (ADT) is a kind (or class) of object with a set of values and operations that govern its behavior. It is called "abstract" because it gives a perspective that is unaffected by implementation. The approach of giving simply the fundamentals while concealing the nuances is known as abstraction. ADT's consists are as follows:
IV.ADT in VDM: Definition VDM The Vienna Development Method (VDM) is a well-known formal methodology for developing computer-based systems. It has evolved to include a variety of approaches and tools based on a formal specification language—the VDM Specification Language—developed in the 1970s at the IBM Laboratory Vienna (VDM-SL). VDM++, a more sophisticated version, enabling you to simulate object-oriented and concurrent systems. There are commercial and academic tools for evaluating models, as well as assistance with testing and demonstrating model characteristics and developing program code from verified VDM models. VDM and related tools have a long history of practical use, and a growing corpus of research in the formalism has resulted in major contributions to the field. Example ADT in VDM: Type Name Boolean Code writing Symbol bool data type true, false Operational structure This function will compare 1 information with 1 pre-confirmed information and return true or false answer corresponding to the available setting. a <=> b Bi implication bool * bool - > bool a = b Equality bool * bool - > bool a <> b Inequality bool * bool - > bool **Example:
Figure 3 result boolean type code V.ADT in Java: Bag Bags are merely designs that provide an outline of functionality. For example, in a bag of candy, you can only see the shells but not the real candy.
The base case ensures that the function does not make any subsequent recursive calls. If no base case is supplied, the function will continue to call itself until memory is exhausted, resulting in a stack overflow. As a result, a recursive function must have a base case in order to function.
Result: Figure 12 result CONCLUSION: After finishing this report, I learnt a lot of previously unknown information and gained a lot of fresh and important information. I will be able to better prepare my items in the future thanks to my new understanding of Data Structures and Algorithms. Above all, I'd want to thank Mr. Vinh for his passionate instruction and assistance. REFERENCES: Baeldung. (2020). baeldung. Retrieved from Stack Memory and Heap https://www.baeldung.com/javastack-heap (11/06/2022) GeeksForGeeks. (2021). geeksforgeeks. Retrieved from Stack Data Structure: https://www.geeksforgeeks.org/stack-data-structure-introduction-program/ (11/06/2022) GeeksForGeeks (2022), Abstract Data Types. Available at: https://www.geeksforgeeks.org/abstract-data- types/ (11/06/2022) ScienceDirect (2022), Stack Memory. Available at: https://www.sciencedirect.com/topics/engineering/stack- memory#:~:text=Stack%20memory%20is%20a%20memory,register%20called%20the%20Stack%20Poi nter. (11/06/2022) Github (2022), Function Calls and the Call Stack. Available at: https://eecs280staff.github.io/notes/02_ProceduralAbstraction_Testing.html (11/06/2022) Wisdomjobs (2022), ABSTRACT DATA TYPE - DATA STRUCTURES. Available at: https://www.wisdomjobs.com/e-university/data-structures-tutorial-290/abstract-data-type-7124.html (11/06/2022)