AUTH's THMMY "Parallel and distributed systems" course assignments.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

25 rindas
378 B

  1. %
  2. %
  3. %
  4. C = rand(40000,4);
  5. Q = rand(4000,4);
  6. disp ('C-Q');
  7. disp ('build-in')
  8. tic; [i1, d1] = knnsearch(C, Q, 'k', 4); toc
  9. disp ('mine')
  10. tic; [i2, d2] = knnsearch2(C, Q, 4); toc
  11. sum(i1-i2)
  12. sum(d1-d2)
  13. disp (' ');
  14. disp (' ');
  15. disp ('C-C');
  16. disp ('build-in')
  17. tic; [i1, d1] = knnsearch(C, C, 'k', 4); toc
  18. disp ('mine')
  19. tic; [i2, d2] = knnsearch2(C, C, 4); toc
  20. sum(i1-i2)
  21. sum(d1-d2)