Naive algorithm ( Minimum value in each row of an implicitly-defined totally monotone matrix)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(mn)$

Space Complexity

$O({1})$ words

(Only needs to keep track of current minimum in current row - once done with a row, can send stored minimum to output and recycle space)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1940

Reference

-