logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на cyberlearn.hes-so.ch?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!