Homework every day is optional, and also we will share some additional materials 👍
Lecturer, Researcher and Data Scientist with 10+ years of experience in data science, analysis, and educational programs for the tech industry. I worked as a researcher at the academy, an analyst at Yandex and a lecturer at leading universities in Russia and the world. Now I am a lecturer and researcher at JetBrains.
PhD in Scientific Computing with research contributions in computer vision and generative modeling (CVPR, IROS, h-index 8, 260 citations). Senior Deep Learning Engineer with production experience in diffusion models and large-scale generative systems. Sixteen years of university-level teaching in mathematics and machine learning.
Writing in Python is like writing pseudocode. Suppose you know, that
\[ e^x=\sum_{k=0}^\infty \frac{1}{k!}x^k = 1 + x + \frac{x^2}{2!} + \dots \]
What do you think, how much memory INT takes?
Can it be depending on the platform:
Cpython open source realization:
struct _longobject {
// macros with
// 1. the object’s reference counter (8 bytes)
// 2. and a pointer to the corresponding type object (8 bytes)
// 3. and extension field ob_size (8 bytes)
PyObject_VAR_HEAD
// int value adds 0, 4 (32x) or 8 bytes (64x)
// SUM(for i=0 through abs(ob_size)-1) ob_digit[i] * 2**(SHIFT*i)
digit ob_digit[1];
};