Question
Someone help me with the following questions using java
Canvas x New Tab Help Center Submitted Dec 3 at T0:06pm This attempt took 3 minutes. Question 1 0/0.5 Which of the following lists of numbers would accurately show the array after the first pass through the Selection Sort algorit Index 0 Value 12 18 4, 9, 12.2.6,8.18 9, 4, 12, 2,6,18,8 2,4,9,12, 6, 8. 18 2. 4, 6, 8, 9,12,18 2. 4, 12,9.6,8,18 0/0.5 pts Question 2 the array after the fourth pass of the Selection Sort
xNew Tab Question 8 0/0.5 pt Given the following array, list the INDEX VALUES of each comparison made in order when finding the target binary search? f 12 using 0 Value 3 12 13 16 5 Not yet graded/ 1 pts Question 9 Explain in plain English what is going on in the following code. Would the eqaiso comparison be te or sae w eather 51 weather I w-
Canvas New Tab Help Center。 Incorrect Question 6 0/0.5 pts How many passes will it take for Selection Sort to sort this array? Assume the algorithm runs to completion. Index 0 Value 12 18 3 7 0/0.5 pts Question 7 it takr te find the target value of 12 using binary search?
Helb Center Question 3 0,5 / 0.5 pts How many passes will it take in all for Selection Sort to sort this array? Assume the algorithm runs to completion. Index 0 3 Value 4 12 18 7 0/0.5 pts uestion 4
Ca xNew Tab Question 5 0/0.5 pts Which of the following lists of numbers would accurately show the array after the third pass of the Bubble Sort algorithm2 Index 0 Value 12 18 4, 2, 6, 8, 9. 12, 18 9. 4, 12. 2. 6, 8,18 9.2, 4, 6, 8, 12, 18 e 2,9,4,12, 6,8,18 2. 4, 6, 8, 9,12,18 0/0.5 pts Incorrect uestion6
Canvas xNew Tab Help Center Question 7 0/0.5 Given the following array, how many comparisons will it take to find the target value of 12 using binary search? Index 0 Value 12 13 16 6 0/0.5 pts Question 8 target value of 12 using made in order when finding the
Canvas New Tab Help Center。 Question 2 0. Which of the following lists of numbers would accurately show the array after the fourth pass of the Selection Sort algorit Index 0 Value 4 12 2. 4, 6,8,9,12.18 2. 4, 6,9.12,8,18 9,4,12, 2, 6, 8, 18 2. 4, 6,9,8, 12, 18 2. 4, 6,8, 12.9, 18 0.5/0.5 Question 3
xNew Tab Question 4 0/0.5 pts Which of the following lists of numbers would accurately show the array after the first pass of the Bubble Sort algorithm? Index 0 Value 4 12 18 9, 4, 12. 2, 6,18,8 4,9,2,6, 12, 8, 18 4, 12.9,2,6,8.18 4,9.2, 6,8,12,18 4, 9, 12, 2, 6,8,18 0/0.5 pts Question 5
0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Someone help me with the following questions using java Canvas x New Tab Help Center Submitted...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Why not A, who can help me? Canvas Help Center ? Unanswered Question 4 0/3 pts...

    Why not A, who can help me? Canvas Help Center ? Unanswered Question 4 0/3 pts Suppose we were to implement a queue using an array such that both enqeueue and dequeue have O(1) worst-case time complexity. Recall that to ensure con- stant time operations, we had to treat the array as circular. Assume that the front and rear markers begin at index 0. Suppose also that the queue has a fixed capacity of 5. That is, there is no...

  • Java The following questions ask about tracing a binary search. To trace the binary search, list...

    Java The following questions ask about tracing a binary search. To trace the binary search, list the value of first, last, and mid for each pass through the loop or method. Use one of these methods for your trace. public static int binarySearchIterative(int[] numbers, int target) { boolean found = false; int first = 0; int last = numbers.length - 1; while (first <= last && !found) { int mid = (first + last) / 2; if (numbers[mid] == target)...

  • 1. What is the minimum number of locations a binary search algorithm will have to examine...

    1. What is the minimum number of locations a binary search algorithm will have to examine when looking for a particular value in a sorted array of 200 elements? (2 points) 1 6 7 8 200 2. In general, which of the following sorting algorithms is the MOST efficient? (2 points) Bubble sort Insertion sort Heap sort Merge sort Selection sort 3. Which of the following are quadratic-sorting algorithms? (2 points) I. insertion sort II. selection sort III. merge sort...

  • 2) Sorting (a) (5 pts) In a Merge Sort of 8 elements, the Merge function gets...

    2) Sorting (a) (5 pts) In a Merge Sort of 8 elements, the Merge function gets called 7 times. Consider a Merge Sort being executed on the array shown below. What does the array look like right AFTER the sixth call to the Merge function completes? نرا index value 0 40 2 12 4 11 5 99 6 31 7 16 27 18 0 1 2 زيا 4 5 6 7 Index Value (b) (5 pts) Consider sorting the array...

  • JAVA question: Suppose we are performing a binary search on a sorted array called numbers initialized...

    JAVA question: Suppose we are performing a binary search on a sorted array called numbers initialized as follows: // index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 int[] numbers = {-30, -9, -6, -4, -2, -1, 0, 2, 4, 10, 12, 17, 22, 30}; ​ // search for the value -5 int index = binarySearch(numbers, -5); Write the indexes of the elements that would be examined by the binary search (the mid values...

  • Write a java program to sort arrays using 3 different methods: Bubble Sort, Selection Sort and...

    Write a java program to sort arrays using 3 different methods: Bubble Sort, Selection Sort and Insertion Sort. The numbers to be sorted will be obtained using a library function which generates pseudo-random numbers. TO Do 1. Fill an array with 140 real numbers between 0.00 and 945.00. Generate the numbers using the subroutine that generates random numbers. Make a spare copy of the array; you will need it later. 2. Call a subroutine to print the contents of the...

  • Please complete the following programming in C++ with clear explanations. Thanks! Primitive Types, Searching and Recursion...

    Please complete the following programming in C++ with clear explanations. Thanks! Primitive Types, Searching and Recursion a) Create a class Homework (in a file homework.h and homework.cpp). b) Create a function initialize_array that receives two parameters: an array of integers and the array size. Use a for loop and an if statement to put 1s in the odd positions of the array and 0s in the even positions. (Use pointers to pass an array of integers as parameter) c) Create...

  • Tree Plot Please write a Java program to print or plot a binary tree in a 2-dimensional character format. You are not...

    Tree Plot Please write a Java program to print or plot a binary tree in a 2-dimensional character format. You are not allowed to use any existing Java classes such as ArrayList or Vector or Tree.    Your program must define 3 binary trees as follows. Each tree is defined in an integer 16 x 3 array. Programming Techniques: (1) The array for the binary tree can be integer data type with 16 rows by 3 columns. Please always make index...

  • Sorting Sort the following array using the quick sort algorithm: (4 Marks) a. 12 26 8...

    Sorting Sort the following array using the quick sort algorithm: (4 Marks) a. 12 26 8 9 7 0 4 Pivot selection is defined to be the first element of each sub-list. Show the array before and after each quicksort round (when the array is partitioned after placing the pivot at its correct position). Also, clearly highlight the pivot in each partition b. Consider an unsorted array of integers of size n. Write a Java program to arrange the array...

  • Tree & Hash Table & Heap Use the following integer keys 73, 58, 91, 42, 60,...

    Tree & Hash Table & Heap Use the following integer keys 73, 58, 91, 42, 60, 130, 64, 87 to perform the followings: a) Binary Search Tree - Draw a binary search tree - Retrieve the integers keys in post-order - Retrieve the integers keys in pre-order - Draw a binary search tree after node 58 is deleted b) Create a Hash Table using the methods described below. Show the final array after all integer keys are inserted. Assumes that...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT