Computers and Technology

1. (3 points) - describe using pseudocode as described in class an algorithm that takes a list of n integers a1, a2, …, an, and returns the sum of the largest and smallest. be sure to initialize the variables. 2. (4 points) – the bubble sort algorithm discussed in class is used to sort the following sequence of integers: 2 16 38 9 4 14 β€’ how many passes must the algorithm perform to guarantee the entire sequence is sorted? β€’ what is the list obtained after the first pass? β€’ what is the list obtained after the third pass? β€’ what is the list obtained after the final pass? 3. (3 points) - show how the binary search algorithm discussed in class searches for 24 in the sorted list below: 2 4 6 7 10 31 32 34 35 37 39 40

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:30, raiapowell
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, issacurlyheadka
A. in packet tracer, only the server-pt device can act as a server. desktop or laptop pcs cannot act as a server. based on your studies so far, explain the client-server model.
Answers: 2
image
Computers and Technology, 24.06.2019 22:50, Bubba06
Which of these might be an example of an advertiser's target group? a. people who have no access to media b. people the advertisers know nothing about c. people who watch a variety of tv shows d. people who live in the same region of the country
Answers: 2
image
Computers and Technology, 25.06.2019 05:20, andrealeon2000
6. write a user-defined matlab function for the following math function: r() = 4cos(4sin ) the input to the function is  (in radians) and the output is r. write the function such that  can be a vector. a) use the function to calculate r(/6) and r(5/6). b) use the function to plot (polar plot) r() for 0 ≀  ≀ 2. hint: use β€œ polar” and/or for β€œpolar plot in matlab." include the title β€œ'r(\theta)=4cos(4sin(\theta))”
Answers: 1
Do you know the correct answer?
1. (3 points) - describe using pseudocode as described in class an algorithm that takes a list of n...

Questions in other subjects:

Konu
Chemistry, 01.07.2020 15:01