How to implement the pseudocode in matlab?

  • C is empty
Output: victitem <- , victim item to be deleted
  • W =U
While (w is not empty)
Select S <-- F \ C that maximize | S W|
  • C <-- C \ {S}
  • F<-- F \ {S}
victitem <- victitem F.senitem
  • W<-- W \ F
End while

4 comentarios

Rik
Rik el 10 de Dic. de 2019
Have you considered doing a tutorial like OnRamp?
Mira le
Mira le el 10 de Dic. de 2019
No I haven't
Rik
Rik el 10 de Dic. de 2019
I suspect that will be a more efficient way to learn how to use Matlab than posting several questions to this forum. If you start with the basics, the more complicated things will become easier to solve as well (and you might learn methods that scale better).
Mira le
Mira le el 10 de Dic. de 2019
Thanks

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Productos

Versión

R2017a

Etiquetas

Preguntada:

el 10 de Dic. de 2019

Comentada:

el 10 de Dic. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by