You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using OmegaNum.hyper(900)(10, 10), for example freezes everything. It begins to take a noticeable amount of time around the 100th hyperoperator, and gets worse as it goes. You need to take some shortcuts to make this library actually function up to the 1000th hyperoperator, or at least put some warnings.
The text was updated successfully, but these errors were encountered:
Looks like OmegaNum.hyper(n)(10, 10) takes approximately O(n4) time, given the nth hyperoperator.
This is due in part to a bunch of nested while and for loops iterating over the entire array in the representation.
The function does eventually complete and return a valid answer though.
varstart_date=newDate().getTime();console.log(OmegaNum.hyper(500)(10,10));// Replace '500' with the hyperoperator to testreturnnewOmegaNum(newDate().getTime()-start_date);
Note: Hyperoperators 10-100 were done with 100 samples each, 125-200 with 10 samples each, and 250 onward with 1 sample each.
Using OmegaNum.hyper(900)(10, 10), for example freezes everything. It begins to take a noticeable amount of time around the 100th hyperoperator, and gets worse as it goes. You need to take some shortcuts to make this library actually function up to the 1000th hyperoperator, or at least put some warnings.
The text was updated successfully, but these errors were encountered: