subject

Write and algorithm that finds the smallest element in the sequence s1, s2,….,sn of n distinct numbers. the input is the sequence, s, and the index, n, of the last term of the sequence. the output is the index of the smallest element in the sequence. this is what i have. i know its wrong but i am just trying to understand it. input: s1,s2, : ? algorithm: 1. i=02. out=03. i = i +14. if out > i, out=i5. repeat 3 and 4 until i==n6. display the smallest number

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:40
Peripherals are part of the main computer. true false
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
question
Computers and Technology, 24.06.2019 17:50
Acontact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. write a program that first takes in word pairs that consist of a name and a phone number (both strings). that list is followed by a name, and your program should output that name's phone number.
Answers: 1
You know the right answer?
Write and algorithm that finds the smallest element in the sequence s1, s2,….,sn of n distinct numbe...
Questions
question
Mathematics, 28.06.2020 02:01
question
Mathematics, 28.06.2020 02:01
question
Mathematics, 28.06.2020 02:01
Questions on the website: 13722362