The algorithm usually refers to a certain type of specification on how a certain problem can be solved. The pseudocode is known to be the method that is used in order to write the algorithm which will be used to solve the problem. There are some programmers that will use simple language in order to create pseudocode.

Some pseudocodes are also used in order to add two different numbers together so that the results can be correctly displayed. Take note that the pseudocode is more appropriate for human reading even if it follows the conventions of typical programming as compared to machine reading while the algorithm can be deciphered easily by machines.

Continue Reading

2 Answers

There are some people who are usually confused with the differences between a flowchart and pseudocode but the more that they understand the differences between the two, they will have no trouble differentiating and learning the differences anymore. The pseudocode is the process wherein the language (usually English) will be translated into software codes.

The flowchart, on the other hand, will show the process that needs to be followed with shapes and colors to make the data flow of the program easier to understand. The graphical representation of the use of a flowchart makes the process easy to understand even by those who are not too familiar with data programming.

Continue Reading

2 Answers

The proper intermediate steps here would be 15,10,20,18 to 15,10,18,20 to 10,15,18,20, or answer A. Bubble sorting involves switching elements around if they are in the wrong order. It starts at the top and works its way down.

So, for this particular set of numbers, it’s probably one of the best things to use since the list is so short.

Bubble sorting is not used all that often because with longer lists, it takes forever to switch everything so that it is properly sorted from top to bottom.

Especially if one of the larger items is already at the bottom. Even the list of eight that acts as an example on Wikipedia takes about five minutes to be sorted out this way.

Continue Reading

2 Answers

The correct answer to this question is 4. Binary trees are used in computer science. As the name suggests, it is a tree structure which contains data information. Its tree has root and nodes, which are commonly referred to as children. There are left children and right children. In the binary tree provided, 200 is the root. 220 is the right child, and 180 is the left child.

Then, 180 becomes the root, and 190 is the right child and 150 being the left one. From there, 150 is the root, and it only has one left child, which is 130. Binary trees can also include empty sets, but this particular tree doesn't.

Continue Reading

1 Answer

15,18,10,20 -- 15,10,18,20 -- 10,15,18,20

1 Answer

Pseudocode is a simple method od showing an algorithm,using English-like words and mathematical operators that are set out to look like a program.

1 Answer

D is the answer to this question. Are you familiar with what an algorithm is? This is the process by which there is a specification on how the programs and problems can be solved. There are different algorithms that can be performed by human beings but it is more likely that the algorithms will be performed by different machines.

Aside from calculation, algorithms are also known to be effective in processing different types of data, automated reasoning, and a lot of other tasks that are available. There are times when the algorithm will be in charge of making some processes clearer. Some machines are not meant to solve vague instructions that may come from people.

Continue Reading

1 Answer

Your answer is not correct. Best Case Running Time complexity of Insertion sort is O(n), and worst case is O(n^2). Answer will be Quick Sort or heap sort.

http://bigocheatsheet.com/

1 Answer

- « Previous
- Next »

Loading, please wait...