1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
slega [8]
3 years ago
5

Examples of algorithm

Computers and Technology
1 answer:
mash [69]3 years ago
3 0

Answer:

1] Binary Search.

2] Merge Sort.

3] Adding and Removing From a Linked List.

Explanation:

You might be interested in
The list method reverse reverses the elements in the list. Define a function named reverse that reverses the elements in its lis
Alisiya [41]

Answer:

public class Reverse {

  1.    public static void reverseList(int list [], int n)
  2.    {
  3.        int[] reversedList = new int[n];
  4.        int k = n;
  5.        for (int i = 0; i < n; i++) {
  6.            reversedList[k - 1] = list[i];
  7.            k = k - 1;
  8.        }
  9.        //printing the reversed list
  10.        System.out.println("The Reversed list \n");
  11.        for (int j = 0; j < n; j++) {
  12.            System.out.println(reversedList[j]);
  13.        }
  14.    }

Explanation:

Using Java, An array is implemented to hold a list of items

A method reverseList() is created to accept an array as parameter and using a for statement reverses the elements of the array and prints each element of the list

See below a complete code with a main method that calls this method

<em>public class Reverse {</em>

<em>    public static void main(String[] args) {</em>

<em>        int [] arr = {10, 20, 30, 40, 50};</em>

<em>        reverseList(arr, arr.length);</em>

<em>    }</em>

<em>    public static void reverseList(int list [], int n)</em>

<em>    {</em>

<em>        int[] reversedList = new int[n];</em>

<em>        int k = n;</em>

<em>        for (int i = 0; i < n; i++) {</em>

<em>            reversedList[k - 1] = list[i];</em>

<em>            k = k - 1;</em>

<em>        }</em>

<em>        //printing the reversed list</em>

<em>        System.out.println("The Reversed list \n");</em>

<em>        for (int j = 0; j < n; j++) {</em>

<em>            System.out.println(reversedList[j]);</em>

<em>        }</em>

<em>    }</em>

<em>}</em>

7 0
4 years ago
You type a complex formula in cell A20. You would like to make the same calculation in cells B20 through H20. To be efficient, y
larisa86 [58]

Answer:

Use autofill

Explanation:

In excel "autofill" is used to fill data in cells, which follows the pattern or logic applied in other cells. To apply same calculation of A20 in B20 to H20, we use autofill technique. Instead of copy pasting, or manually entering the complex formula this method is more suitable.  

4 0
3 years ago
Word provides a quicker way through the
Greeley [361]
You didn't finish your question 

4 0
4 years ago
On the road you are traveling, the pavement markings change from broken white lines to solid white lines between the lanes of tr
Reil [10]
A solid white line means no passing or changing lanes. Hope this helps.
5 0
3 years ago
An administrator has several cables plugged into a patch panel and needs to determine which one comes from a specific port. Whic
Pavel [41]

Answer:

Tone Generator and Probe

Explanation:

Tone generator is the device that generate a signal while probe is used to detect the signal. During the cables are connected to different port while establishing a system, it is required to check the cables that are connected to different ports.

With the help of tone generator, a signal has been sent through the cables that need to checked before connection. The signal are tested on the other end of the cable to determine the different types of cable that are connected to different ports.

So, the administrator should use tone generator and probe to determine that which cable is connected to which port.

7 0
3 years ago
Other questions:
  • In a switch statement, if a break statement is missing, _______________. Select one: a. the default case is automatically execut
    15·1 answer
  • Which option will you use to expose your presentation to the audience?
    8·2 answers
  • 4. What is the simplest way to permanently get rid of an unwanted file?
    12·1 answer
  • What is the value of the cost variable after the following code snippet is executed? int cost = 82; if (cost &lt; 100) { cost =
    15·1 answer
  • What is the difference between the Internet and the World Wide Web? Explain in your own words.
    13·2 answers
  • Which of the following is something all models use to determine relationships?
    7·1 answer
  • Who still plays old Nintendo 64 games?
    6·2 answers
  • Who is responsible for developing the physical background for the characters by creating buildings, landscapes, and interiors?
    14·1 answer
  • What does a black box represent in the system input/output model?.
    7·1 answer
  • Cisco cyber security would classify this email?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!