what is the time complexity of generating n dimensional adjacency matrix in matlab.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pallavi Jain
el 30 de En. de 2016
Respondida: Walter Roberson
el 30 de En. de 2016
what is the time complexity of generating n dimensional adjacency matrix in matlab using standard functions as zeros,ones,eye,etc... Is it n^2.
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de En. de 2016
No, but it might be something to the power of n, since you have n dimensions. Difficult to say as I am only familiar with 2 dimensional adjacency matrices for n vertices, not with an n dimensional adjacency matrix.
The computational complexity of a normal adjacency matrix can be the number of vertices times the maximum degree in some representations, depending in part on what the input representation is.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!