example 1 following are simple sequence of


Example 1:  Following are Simple sequence of statements

Statement 1;

 Statement 2;

...

... Statement k;

The entire time can be found out through adding the times for all statements:

Total time = time (statement 1) + time(statement 2) + ... + time(statement k).

It might be noted that time needed by each statement will greatly vary based on whether each of statement is simple (involves only basic operations) or otherwise. Supposing that each of the above statements involve only basic operation, the time for every simple statement is constant and the total time is also constant: O(1).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: example 1 following are simple sequence of
Reference No:- TGS0411910

Expected delivery within 24 Hours