Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1- Writ a program to search for 4 from the list of the following elements { 2, 3, 4, 10, 40 } using Linear Search

1- Writ a program to search for 4 from the list of the following elements { 2, 3, 4, 10, 40 } using Linear Search technique.
2- Writ a program to search for 4 from the list of the following elements { 2, 3, 4, 10, 40 } using Binary Search technique.
3- Writ a program to sort the following list {5, 94, 25, 15, 22, 1, 87} of elements using Bubble sort technique.
4- Writ a program to sort the following list {35, 90, 75, 16, 2, 11, 67} using Selection sort technique.
5- Writ a program to built Singly linked list and do the following operations: addFirst(15)
addFirst(67)
addFirst(40)
addLast(80) removeFirst() Finaly, Display the list
6- Writ a program to built an Array based implementation of Stack and do the following operations: push(49)
push(10)
push(30)
pop()
Finaly,
Display the Stack
7- Writ a program to built an Array based implementation of Queue and do the following operations: enqueue(15)
enqueue(6)
dequeue()
enqueue(17) dequeue() enqueue(8) Finaly,
Display the Queue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions