Похожие чаты

I want to be able to use a mathematical approach

to determine the costs of operations I perform code-wise. Is Learning the Asymptotic Notation enough?

9 ответов

17 просмотров

Asymptotic notation usually deals with number of operations, not the time each operation takes.

🖖- Автор вопроса
🖖
...so what do you recommend?

What do you want exactly? To know how much operation like "+" or "*" take on your CPU?

🖖- Автор вопроса
Ihor
What do you want exactly? To know how much operati...

To be able to mathematically analyze designs I come up with, which will enable to make comparisons before implementation

🖖- Автор вопроса
🖖
To be able to mathematically analyze designs I com...

...so I can be sure I meet requirements

🖖
To be able to mathematically analyze designs I com...

For general analysis O notation may be fine. But the whole point of the notation is to ignore time for each operation and the exact number of operations in algorithms. It's more high level than this.

🖖- Автор вопроса
Ihor
For general analysis O notation may be fine. But t...

I think I get your point. Ultimately, the time is machine and/or OS dependent. I think big-O and some research will do the job then

🖖
I think I get your point. Ultimately, the time is ...

The only real way to know is to benchmark on realistic inputs. Other factors affect overall time too like memory access. Big O notation doesn't take it into consideration. And it ignores constant factors because it assumes that N approaches infinity. In reality N and 2N make huge difference while both are O(N)

🖖- Автор вопроса
Ihor
The only real way to know is to benchmark on reali...

I'll come back to this when I can relate

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта