What is the best algorithm for this array-comparison problem?

后端 未结 4 535
囚心锁ツ
囚心锁ツ 2021-02-01 08:10

What is the most efficient for speed algorithm to solve the following problem?

Given 6 arrays, D1,D2,D3,D4,D5 and D6 each containing 6 numbers like:

D1[0         


        
4条回答
  •  被撕碎了的回忆
    2021-02-01 08:45

    With only 36 values to compare, the most efficient approach would be to not use CUDA at all.

    Just use a CPU loop.

    If you change your inputs, I'll change my answer.

提交回复
热议问题