使用numpy在矩阵中查找路径

时间:2015-04-20 19:54:49

标签: python numpy matrix

我有aplhabets列表,我用numpy比较它们 比如在文件1中我有

File 1

a,b,c

c,d,f

File 2

c,d,f

我将file1的每个元素与文件2进行比较,并生成类似

的矩阵
0 0 0 (a compares with all of aplhabets in file b)

0 0 0(bcompares with all of aplhabets in file b)

0 0 1(c compares with all of aplhabets in file b)


1 0 0(c compares with all of aplhabets in file b)

0 1 0(d compares with all of aplhabets in file b)

0 0 1(f compares with all of aplhabets in file b)

现在我必须证明从a到d的路径我怎样才能找到路径?

0 个答案:

没有答案