[] Algorithm design and analysis of space-time trade-off

0. origin


 

  In the beginning, we will store the results of some commonly used to make tables, pre-storage

  Or, we will first of part or the whole issue of pretreatment.

 

1. have thought of this algorithm

 

2. Sorting counting method, is less than the number of the present calculation per trip number 


 

 

 

 // note the contents else, so you can always start traversing from i + 1

 

 

 

 

 

 Comparison operations:

 

 

 

 The idea for the frequency distribution function calculation

 

 

 

Guess you like

Origin www.cnblogs.com/SeasonBubble/p/12601538.html