Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1007600 // Huge Levenshtein Test

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (627L/5K/15K).

1  
!7
2  
3  
p {
4  
  hugeLeven(10000);
5  
  //hugeLeven(100000);
6  
  hugeLeven(1000000);
7  
}
8  
9  
svoid hugeLeven(int n) {
10  
  S a = rep(n, 'a') + rep(n, 'b');
11  
  S b = rep(n+10, 'a') + rep(n-10, 'b');
12  
  print(n);
13  
  time { print(" => " + leven(a, b)); }
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007600
Snippet name: Huge Levenshtein Test
Eternal ID of this version: #1007600/4
Text MD5: b77ed9212cc751a81b0e17cb7f03e174
Transpilation MD5: 99e30f4a9b2023fa179ba80ed2060f0d
Author: stefan
Category: javax / text
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-28 00:27:01
Source code size: 243 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 479 / 558
Version history: 3 change(s)
Referenced in: [show references]