Skip to content

Conversation

@kalenikai
Copy link

Lesson_7

"""
Без оптимизации 0.0019780999999999965
С оптимизацией 0.00015790000000000248
""" No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

неправильно сделанные замеры
то, о чем мы говорили на уроке....

# замеры
print(timeit.timeit("merge_sort(orig_list)", \
setup="from __main__ import merge_sort, orig_list", number=1))

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

слияние реализовано, как в примере

Fastest way using "median" from "statistics" 0.0006178999999999768
Litlle bit worse using "sorted" 0.0006308000000000147
My realization is nightmare :) 0.058788599999999996
"""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь тоже хороши бы итоговые выводы - применили сортировку или нет и т.д.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants