Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I implement this easily?

1 回表示 (過去 30 日間)
Mira le
Mira le 2019 年 12 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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] [] []

回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by