Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I implement this easily?

1 Ansicht (letzte 30 Tage)
Mira le
Mira le am 16 Dez. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
While (W is not empty)
Select S ∈ F \ C that maximize | S ∩ W|
C <-- C ∪ {S}
W <-- W \ {S}
end
retrun C
How do i implement this , we know that W and S are cell array.
like that
W= {[1 2], [1 3],[1 4], [2 3] , [2 4],[3 5]}
S=5×3 cell array
[1×2 double] [1×2 double] [1×2 double]
[1×2 double] [1×2 double] [1×2 double]
[1×2 double] [1×2 double] [1×2 double]
[1×2 double] [1×2 double] []
[1×2 double] [] []

Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by