subject

The following two algorithms are designed to find the minimum value in a list of integers. Create a variable min, and set this to the first value in the list. Compare each
Algorithm subsequent value in the list against the value of min, and if it is smaller than
1: or equal to the current value, set min to this value. When the end of the list
is reached, display the value of min
Create a variable min , and set this to 0. Compare each value in the list
Algorithm
against the value of min, and if it is smaller than the current value, set min to
11:
this value. When the end of the list is reached, display the value of min.
Which of the following statements correctly demonstrates that the two algorithms are
NOT equivalent?
Neither algorithm will correctly display the minimum value of the list [0, 5, 6, 2]
Algorithm I will correctly display the minimum value of the list [4, 10, 6, 1],but Algorithm II
will not
Algorithm Il will correctly display the minimum value of the list (-4, 2, 3, 2) but Algorithm
will not
Both algorithms will correctly display the minimum value of the list [-1, 3, -4, 8]

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Data is processed, stored, and transmitted as a series of 1s and 0s. each 1 or 0 is called a(n) . a series of eight 0s and 1s, called a(n) , represents one character—a letter, number, or punctuation mark. data becomes when it is presented in a format that people can understand and use. digital signals are represented by two different , such as +5 volts and +.2 volts. digital data can also take the form of light and dark spots etched onto the surface of a cd or the positive and negative orientation of particles on the surface of a hard disk. data consists of numbers that might be used in arithmetic operations. it can be represented digitally using the number system. data is composed of letters, symbols, and numerals that are not used in arithmetic operations. computers represent this type of data using , ebcdic, unicode, or utf-8. data is quantified using terms such as or kibibyte (1024 bytes), and prefixes such as or mebi (1,048,576), and giga or (1,073,741,824). to reduce file size and transmission times, digital data can be compressed. compression provides the means to compress data and reconstitute it into its original state. compression throws away some of the original data during the compression process. compressed files usually have at the end of the file name and are represented with special icons. these files have to be or unzipped before you can view the data they contain.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
You know the right answer?
The following two algorithms are designed to find the minimum value in a list of integers. Create...
Questions
question
Social Studies, 14.12.2021 14:30
question
English, 14.12.2021 14:40
question
Mathematics, 14.12.2021 14:40
question
Social Studies, 14.12.2021 14:40
Questions on the website: 13722362