logo

Crowdly

What is the space complexity (BigO) of this algorithm? Note: the algorithm is de...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the space complexity (BigO) of this algorithm?

Note: the algorithm is described in pseudo-code. 'directory' is the path (String) to a folder containing n images.

In your calculation, do NOT consider the space used by the input array.

An 'image' is a an array of size [512][512][3] (width, height, channels)

loadImages(directory)

    images <- empty list

    files <- list all files in directory

    for each file in files

        image <- load file into memory

        images.append(image)

    return images

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on cyberlearn.hes-so.ch?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!