Write a program in Java to sort the given array using merge
sort, quick sort, insertion sort, selection sort and bubble sort
based on the input from the user which sorting technique they
wanted to use. Get the array size, array elements from the user,
and also display the sorted array along with the name of the
sorting technique used.
Write and test a C program to implement Bubble
Sort. .
In your C program, you should do:
Implement the array use an integer pointer, get the size of the
array from standard input and use the
malloc function to allocate the required
memory for it.
Read the array elements from standard input.
Print out the sorted array, and don’t forget to free the
memory.
Debug your program using Eclipse C/C++ CDT.
Write a program to implement and analyzing the Bubble Sort. a.
Write a C++ function for Bubble Sort b. Use a dynamic array of
integers in a variable size of n. c. Display the following
information: 1) Total counts of comparisons 2) Total counts of
shifts / moves / swaps, whichever applies d. Write a main()
function to test a best, and an average cases in terms of time
efficiency i. Fill out the array with random numbers for an...
All code in JAVA please
1. Implement Insertion Sort
2. Implement Selection Sort
*For problem 1 and 2, please:
a. Let the program generate a random array.
b. Output both the original random array and the sorted version of
it
Write an ARMv8 program to sort an array of elements. As I
mentioned in class, this problem uses a portion of your Programming
Assignment 1 where you computed the smallest and largest values in
an array. Here we will extend that assignment to find the “index”
of the smallest and the index of the largest elements of the array.
The following C code segment illustrates how we can sort the
element of an array.For this problem, assume an array with...
write a program using Java language that is-
Implement Stack with a linked list, and demonstrate that it can
solve the Tower of Hanoi problem.
Write implementation body of method “infixToPrefix(String[] e)”
of class ArithmeticExpression to convert infix expressions into
prefix expressions.
Choose one of the following cryptography techniques and
implement it using (java )programming language. Your program should
provide the user with two options Encryption and Decryption, with a
simple UI to get the input from the user, and view the result. You
can use any restriction you need for the user input but you need to
clarify that and validate the user input base on your
restriction.
● Feistel ● Keyword columnar ● Any cryptosystem of your choice
(needs to...