Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Get detailed and accurate answers to your questions from a community of experts on our comprehensive Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

You have recently joined in an academic programme to learn more about

programming. You have learnt a few programmes. Your teacher has now given you a

number of tasks to complete.


a) Explain the concept of an algorithm and describe common algorithmic

techniques and solutions.

b)Create a flowchart from the following algorithm.

Step 1: Input VALUE1, VALUE2

Step 2: if (VALUE1 > VALUE2) then

MAX VALUE1

else

MAX VALUE2

endif

Step 3: Print “The largest value is”, MAX

Sagot :

The concept of an algorithm simply refers to the procedure that is used in problem-solving.

The description of the common algorithmic techniques and solutions are:

  • Brute-force or exhaustive search.
  • Divide and Conquer.
  • Greedy Algorithms.
  • Dynamic Programming.
  • Branch and Bound Algorithm.
  • Randomized Algorithm.
  • Backtracking.

The sample flowchart:

START

Input

VALUE1,VALUE2

is

VALUE1>VALUE2

If yes

MAX  VALUE1

If no

MAX  VALUE2

Print

“The largest value is”, MAX

STOP

Read more about flowcharts here:

https://brainly.com/question/6532130

#SPJ1