Question: Please I want to solve all paragraphs in java language. 1- Writ a program to search for 4 from the list of the following elements

Please I want to solve all paragraphs in java language.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!