T
T
tolka19912015-09-03 21:03:23
Adaptive design
tolka1991, 2015-09-03 21:03:23

What is the applicability of data structures?

hello, I'm a beginner in programming and I don't quite understand why we need such things as binary search trees, hash tables, and so on? what do they give?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Roman, 2019-03-25
@RomanOracool

There is no way to make a table responsive. If you want the content to be displayed under any conditions as in the top picture, I usually display a horizontal scroll.

O
Orbitter, 2019-04-20
@Orbitter

To make content in 2 columns, it is not necessary to use a table.
All you need is to make a flex block.

<div class="flex_block">
  <div>Колонка 1</div>
  <div>Колонка 2</div>
</div>

.flex_block {
  width: 100%;
  display: flex;
}
.flex_block > div {
  flex: 1 1 auto;
}

Block properties, such as width, "thickness", order, can be varied. In fact, there are a lot of possibilities. If you are not familiar with flexbox, here is the help: https://html5.by/blog/flexbox/

V
Vladimir Martyanov, 2015-09-03
@vilgeforce

They are needed so that strings / lists / dictionaries / other data structures from the "standard library" work well and quickly.

�
âš¡ Kotobotov âš¡, 2015-09-04
@angrySCV

when developing new data structures, programmers want to increase the efficiency of working with data (most often they are looking for a way to increase the speed of data processing, or reduce the size of their storage / transportation).
searching for data, for example, in a binary tree, is faster than searching through the entire list by orders of magnitude.

S
slinkinone, 2015-09-05
@slinkinone

These are things that give a clearer understanding of the work of libraries and programs. (For example, how it searches for a database or how parameters are passed to a function in the asm language)
They also serve as a kind of tool that you can use in your projects.
They will help make it concise, faster and more readable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question