一、數(shù)據(jù)庫(kù)
1、 Database
我們很多數(shù)據(jù)都是存儲(chǔ)在數(shù)據(jù)庫(kù)里的,比如SQL Server、MySql等,如果某個(gè)數(shù)據(jù)庫(kù)很大,里面包含了很多很多的數(shù)據(jù),那如何快速地查詢到具體某個(gè)數(shù)據(jù),這時(shí),我們肯定會(huì)考慮到
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
如何存儲(chǔ),能夠更容易查詢 2、如何查,采用什么樣的算法,查詢的更快
How to store and query more easily 2. How to query and what algorithm to use to query faster
這兩個(gè)問(wèn)題。這個(gè)時(shí)候,就體現(xiàn)到了數(shù)據(jù)結(jié)構(gòu)的重要性了。
These two questions. At this time, the importance of data structure is reflected.
在數(shù)據(jù)庫(kù)里,索引就是一種數(shù)據(jù)結(jié)構(gòu),主要是為了加快查詢速度。
In database, index is a kind of data structure, which is mainly to speed up query.
二、操作系統(tǒng)
2、 Operating system
我們使用的多的就是Windows操作系統(tǒng),我們打開LOL想玩把游戲,又想邊玩邊聽音樂(lè),這時(shí),我們又打開了酷狗。這里就用到了數(shù)據(jù)結(jié)構(gòu)中的棧,LOL是個(gè)進(jìn)程,酷狗也是個(gè)進(jìn)程,這兩個(gè)進(jìn)程存儲(chǔ)在棧中。
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份文檔,計(jì)算機(jī)先把這100份文檔內(nèi)容存到隊(duì)列中,然后再依次打印。
To print 100 documents, the computer first saves the contents of the 100 documents in the queue, and then prints them in turn.

以上這兩個(gè)場(chǎng)景都用到了數(shù)據(jù)結(jié)構(gòu)。
Data structures are used in both of the above scenarios.
三、文件壓縮
3、 File compression
我們把很大的文件壓縮一下,這時(shí)就用到了數(shù)據(jù)結(jié)構(gòu)中樹的知識(shí),壓縮具體采用了樹里的哈夫曼樹的知識(shí),將文件縮小很多。
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://mails.szecar.cn/ , we will have more wonderful content for you to see in the future!