一、數據庫
1、 Database
我們很多數據都是存儲在數據庫里的,比如SQL Server、MySql等,如果某個數據庫很大,里面包含了很多很多的數據,那如何快速地查詢到具體某個數據,這時,我們肯定會考慮到
Many of our data are stored in databases, such as SQL server and mysql. If a database is large and contains a lot of data, we will certainly consider how to quickly query a specific data
如何存儲,能夠更容易查詢 2、如何查,采用什么樣的算法,查詢的更快
How to store and query more easily 2. How to query and what algorithm to use to query faster
這兩個問題。這個時候,就體現到了數據結構的重要性了。
These two questions. At this time, the importance of data structure is reflected.
在數據庫里,索引就是一種數據結構,主要是為了加快查詢速度。
In database, index is a kind of data structure, which is mainly to speed up query.
二、操作系統
2、 Operating system
我們使用的多的就是Windows操作系統,我們打開LOL想玩把游戲,又想邊玩邊聽音樂,這時,我們又打開了酷狗。這里就用到了數據結構中的棧,LOL是個進程,酷狗也是個進程,這兩個進程存儲在棧中。
We use the windows operating system most. We open lol to play games and listen to music while playing. At this time, we open cool dog again. Here we use the stack in the data structure. Lol is a process and cool dog is also a process. These two processes are stored in the stack.
打印100份文檔,計算機先把這100份文檔內容存到隊列中,然后再依次打印。
To print 100 documents, the computer first saves the contents of the 100 documents in the queue, and then prints them in turn.

以上這兩個場景都用到了數據結構。
Data structures are used in both of the above scenarios.
三、文件壓縮
3、 File compression
我們把很大的文件壓縮一下,這時就用到了數據結構中樹的知識,壓縮具體采用了樹里的哈夫曼樹的知識,將文件縮小很多。
We compress a large file. At this time, we use the knowledge of the tree in the data structure. The compression specifically uses the knowledge of the Huffman tree in the tree to reduce the file a lot.
The above is the wonderful content shared by Xiaobian today. Please contact us for more wonderful content: http://www.qanho.com/ , we will have more wonderful content for you to see in the future!