algorithm-base/animation-simulation/数据结构和算法/桶排序.md

106 lines
4.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

使
double
26.2, 21.2, 19.8
线
16.320.117.216.815.319.318.5
使
****
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/微信截图_20210331130134.3wsjrib22ue0.png)
西,
![_20210331140519](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/微信截图_20210331140519.6f19qdtu04w0.png)
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/微信截图_20210331140752.18z2563p02o0.png)
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/微信截图_20210331140921.274drwaxkv9c.png)
15.316.316.817.218.519.320.1
7 7
使
= -/ -1
(20.1-15.3) / (7-1) = 0.8
使使
使
![](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/微信截图_20210331162409.6gz2xev8lgg0.png)
![_20210331173942](https://cdn.jsdelivr.net/gh/tan45du/photobed@master/微信截图_20210331173942.5w8mixnni5k0.png)
退使
****
线使使 p202
****
使 On
****
使
```java
(int) ((array[i] - min)/w * (bucketNum-1));
// w = max - min
```