Are items a through e in the following list algorithm? If not, what qualities required of algorithms do they lack?
a. Add the first row of the following matrix to another row whose first column contains a nonzero entry. (Reminder: Columns run vertically; rows run horizontally.)
[1 2 0 4 0 3 2 4 2 3 10 22 12 4 3 4]
b. In order to show that there are as many prime numbers as there are natural numbers, match each prime number with a natural number in matching the first prime number with 1 (which is the first natural number) and the second prime number with 2, the third with 3, and so forth. If, in the end, it turns out that each prime number can be paired with each natural number, then it is shown that there are as many prime numbers as natural numbers.
c. Suppose you're given two vectors each with 20 elements and asked to perform the following operation. Take the first element of the first vector and multiply it by the first clement of the second vector. Do the same to the second elements, and so forth. Add all the individual products together to derive the dot product.
d. Lynne and Calvin are trying to decided who will take the dog for a walk. Lynne suggests that they flip a coin and pulls a quarter out of her pocket. Calvin does not trust Lynne and suspects that the quarter may be weighted (meaning that it might favor a particular outcome when tossed) and suggests the following procedure to fairly determine who will walk the dog.
1. Flip the quarter twice.
2. If the outcome is heads on the first flip and tails on the second, then I will walk the dog.
3. If the outcome is tails on the first flip, and heads on the second, then you will walk the dog.

Answers

Answer 1

Answer:

Following are the responses to the given points:

Explanation:

The following features must contain a well-specified algorithm:

Description [tex]\to[/tex] Exact measures described

Effective computation   [tex]\to[/tex]  contains steps that a computer may perform

finitude  [tex]\to[/tex]  It must finish algorithm.

In choice "a", there is little algorithm Because it does not stop, finiteness has already been incomplete. There is also no algorithm.

In choice "b", it needs productivity and computational burden. because it's not Enter whatever the end would be.

In choice "c", the algorithm is given the procedure. It fulfills all 3 algorithmic properties.

In choice "d", each algorithm is a defined process. Since it needs finitude.


Related Questions

when working with smart which tab would provide the ability to change the shape or size of the smart art shapes

Answers

It doesn’t change shape

Answer:

B) Format

Explanation:

Methods ii.) Define and implement a method that takes a string array as a parameter and returns the length of the shortest and the longest strings in the array i.) Write a method that take an integer array as a parameter and returns the sum of positive odd numbers and sum of positive even numbers. iii.) Implements the sequential search method that takes and array of integers and the item to be search as parameters and returns true if the item to be searched in the array, return false otherwise

Answers

Answer:

Explanation:

Well I am sorry I don't know the answer anyway.

1, How can technology serve to promote or restrict human rights? [2 points]

Answers

Answer:

Examples of how technology can be used as a powerful tool for human rights are ever expanding. Newer technologies such as artificial intelligence, automation, and blockchain have the potential to make significant positive contributions to the promotion and protection of human rights.

Write code to take two words from the user. The program should convert these to lower case, then compare them: printing a positive number if string1 appears after string2 alphabetically, a negative number if string1 appears before string2 alphabetically and zero if the two strings are identical. Make sure your program does not produce any additional numerical output other than this number or it may not be graded correctly.

Answers

Answer:

Use compareTo.

Explanation:

import java.util.Scanner;

public class U2_L3_Activity_Three{

 public static void main(String[] args){

   Scanner scan = new Scanner(System.in);

   System.out.println("Enter first word: ");

   String word1 = scan.nextLine();

   System.out.println("Enter second word: ");

   String word2 = scan.nextLine();

//I had to make the string all lowercase or all uppercase for when I did this

   word1 = word1.toLowerCase();

   word2 = word2.toLowerCase();

   System.out.println("Result: " + word1.compareTo(word2));

 }

}

Following are the program to converting string value into lowercase and compare with an input string value.

Program Explanation:

Import package.Defining a class Dat.Inside the class defining the main method, and in the method, two string variable "string1, string2" is declared.After input, the value a "toLowerCase" method is used that converts string value into lower case.  After converting value into the lower case a "compareTo" method is used that compares value and prints its value.

Program:

import java.util.*;//import package for input  

public class Dat //defining a Dat

{

public static void main(String[] ax)//main method

{

String string1 ,string2; //defining String variable

Scanner sc = new Scanner(System.in);//creating Scanner class object to input value

System.out.println("Enter values: ");//print message

string1= sc.next();//input value

string2= sc.next();//input value

string1= string1.toLowerCase();//convert string value into LowerCase  

string2 = string2.toLowerCase();//convert string value into LowerCase

System.out.println("Result: " + string1.compareTo(string2));//using compareTo method

}

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/15706308

I need help Asap!!! So the question is "Compare and contrast Web page and Websites". ​

Answers

Answer:

A website is a mix of web pages while a web page is a single entity.

Explanation:

Other Questions
The highest point in Chicago is 735 feet above sea level. You can represent that numerically using . An island reports that in the year 2000 there were 240 babies born. That same year, 100 individuals died. What is the growth rate for this island?(Show your work and indicate if it is positive or negative.) How can olive oil help in preventing and managing diabetes when included in the daily diet? suppose a mechanism. How does the Wall's life in Welch compare to Battle Mountain and Phoenix. Provide three comparisons. And three contrasts. PLSSSSS HELP MEEEE PLSSSSSSSThelma and Louise ordered take-out from Belle Taco. Thelma ordered 2 tacos and 1 burrito and paid $3.79. Louise ordered 2 burritos and 1 taco and paid $4.58..Find the cost for 1 of each of these items. Stacy collected the data shown in the table.Number of Washers Total Mass Total Force0.6 kg 5.9 N21.2 kg 11.8 N31.8 kg 17.6N42.5 kg 24.5 N53.2 kg 31.4 NWhat's the general relationship between mass and gravitational force? Explique de que forma a fraca ligao indstria transformadora contribui para a fraca competitividade do sector. Ona went to school to learn how to decorate beautiful wedding cakes. Now she decorates cakes for events all over the country. Onas career belongs in the _____ pathway of the Hospitality and Tourism cluster.LodgingTravel and TourismRecreation, Amusements, and AttractionsRestaurant and Food/Beverage Services First Amendment Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances. Based on the First Amendment, which statement can you assume to be true about the Founding Fathers? (4 points) Group of answer choices 1.They believed government would not make laws that affected rights. 2.They were concerned the people would not rally behind a single religion. 3. They were concerned about the government having too much power. 4. They believed the proper role of citizens was to leave politics to their leaders. Assess to what extent Vladmir Lenin was significant to Russias change from a Tsarist regime to Communism (b) in what way are carbon dioxide and orange juice similar? Diaz Manufacturing had current assets worth $2,812,422 and long-term assets worth $300,600 in 2014. In 2013, current assets were $650,208 and long-term assets were $400,600. The firm had accounts payable of $196,522 , accruals of $259,054 , notes payable of $292,361 , and long-term debt of $405,830 in 2014. Calculate the net working capital for Diaz Manufacturing in 2014. E = MV^2 2 + mgh, If M=20, h=15, E=4900, g=9.8. Find V Gregor Mendel, a 19th century monk, used pea plants to arrive at several conclusionsabout how traits are passed on to offspring. One conclusion became known as the Law ofSegregation. The illustration below shows how this law operates.Parent 1Parent 2Offspring 1 Offspring 2 Offspring 3 Offspring 4Which conclusion can you make based on Mendel's work as shown in the diagram?Parent 1 has the dominant traitParent 2 has the dominant trait.The offspring inherit traits only from Parent 1.The offspring will not pass on the trait, inherited from Parent 2, to their offspring. 25 POINTS!!!!! HELP ASAPPPPPPPPPPPPLS ANSWER!!Consider President Roosevelt's decision to replace world history with infamy. Which mode of persuasion best describes the impact of this replacement? Describe the reasoning for your choice in 1-2 sentences.Thank you! 5(x + 8) + x + y, given that x = 3 and y = 30 100 POINTS!!Find the slope and the y intercept of the line in the graph. Picture a neutral S atom. This neutral atom will havevalence electrons. To reach a more stable configuration, this atom will(gain, lose) electrons. The charge of the ion that forms will beASAP please How did the Portuguese create a trading empire stretching from Africa through the Indian Ocean to India. Calculate the result of operations, round the result to the tenth5/2 + 2