What is a generic algorithm?

What will be an ideal response?


A generic algorithm is a template function. Those that manipulate containers take iterators for arguments. Others take arbitrary types as arguments.
Explanation: Iterators provide access to the elements in the container.

Computer Science & Information Technology

You might also like to view...

In Outline view, slides in the left hand pane are displayed as thumbnails

Indicate whether the statement is true or false

Computer Science & Information Technology

The standard set of vocabulary for pseudocode is specific and detailed.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When is the base case first > last (where first is the index of the first item in the array and last is the index of the last item in the array) reached in a recursive binary search algorithm?

What will be an ideal response?

Computer Science & Information Technology

The team speaking against a resolution is known as the ________ team

Fill in the blank(s) with correct word

Computer Science & Information Technology