Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Regula StworzRegule(List<int[]> niepokryteObiekty, int[][] systemDecyzyjny)
- {
- int licznikObiektu = 0;
- List<int> zrobione = new List<int>();
- foreach (var obiekt in niepokryteObiekty)
- {
- for (int i = 0; i < obiekt.Length - 1; i++)
- {
- Regula potencjalnaRegula = new Regula(obiekt.Last());
- Deskryptor deskryptor = new Deskryptor(i, obiekt[i]);
- potencjalnaRegula.deskryptory.Add(deskryptor);
- if (!potencjalnaRegula.CzySprzeczna(systemDecyzyjny))
- {
- zrobione.Add(licznikObiektu);
- return potencjalnaRegula;
- }
- licznikObiektu++;
- }
- }
- return TBA
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement