User Tools

Site Tools


weave_method

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
weave_method [2023/05/15 16:32]
harshec
weave_method [2023/05/15 16:33] (current)
harshec
Line 7: Line 7:
 ===Psuedo Code=== ===Psuedo Code===
  
-<pre> 
     depthS(string str, int n, int s, int lastinsert) update_fairness_calc(lastinsert) if(!fair()) return     depthS(string str, int n, int s, int lastinsert) update_fairness_calc(lastinsert) if(!fair()) return
     if(s == MAX_S)     if(s == MAX_S)
Line 15: Line 14:
     depthN(string str, int n) if(n == MAX_N) print("solution = " + n) return calculate_worth_of_all_insertion_points(str) depth(str, n + 1, 0, 0)     depthN(string str, int n) if(n == MAX_N) print("solution = " + n) return calculate_worth_of_all_insertion_points(str) depth(str, n + 1, 0, 0)
     main() depthN("", 0)     main() depthN("", 0)
-</pre>+
 ===Future Work=== ===Future Work===
  
weave_method.1684168374.txt.gz ยท Last modified: 2023/05/15 16:32 by harshec