Question: Case study: A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a
Case study: A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers as shown in the below image: Head HT NULL Data Next Each element in the link is called a node which is composed of two parts: a. Data stored by the node b. Link pointed to the next node in the linked list In this assessment 2. you are required to develop a Linked List in visual studio called Linkedlist.cpp which uses a Linked List to store the browsing history in the web browser following aspects using C++ 1. Node in the linked list with appropriate data types: each node stores in the URL (web address), its current position (index) in the Linked List and link to the next node in the Linked List 2. Insertion - Adds a node at the beginning of the lined list: method signature is void insertFirst(String newURL) 3. Deletion - Deletes a node at the beginning of the linked list: method signature is void delete First 4. Insert Last - Adds a node at the end of the linked list: method signature is void insertLast(String newURL) 5. Delete Last - Deletes a node from the end of the linked list method signature is vold deleteLast 6. Insert After - Adds a node after another node (according to the provided index in the method parameter) of the linked list: method signature is void insert After(int index) 7. Delete - Deletes a node from the linked list using the index: method signature is voide deleteAfter(int index) 8. Search - Search through the linked list to identify the first occurrence of node with match data against the target: method Signature is int search(String uri) 9. Display - Displays the complete linked list in a forward manner: method signature is String display
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
