3
$\begingroup$

I'm always needing to learn more about GAP. Can anyone help me on the following question? Question: I have a list of 500 sublists where each sublist consists of six groups. Is there a command to display or renumber only those sublists with trivial intersection? Is there a function in GAP can solve this?

This questioning arose when I studied a problem on coverage of finite groups.

$\endgroup$
  • $\begingroup$ Just how is this set-theory related? $\endgroup$ – Asaf Karagila Jan 16 '11 at 19:25
  • 1
    $\begingroup$ This is off-topic here, I think. Why not ask it in the GAP forum instead? gap-system.org/Contacts/Forum/forum.html $\endgroup$ – Arturo Magidin Jan 16 '11 at 20:42
  • 3
    $\begingroup$ coreFreeList := Filtered( list, sublist -> IsTrivial( Intersection( sublist ) ) );; $\endgroup$ – Jack Schmidt Jan 17 '11 at 0:08
  • 1
    $\begingroup$ Thanks Jack Schmidt! This command solved the problem! Thank you very much. $\endgroup$ – user5802 Jan 20 '11 at 0:40
5
$\begingroup$

This question is in fact answered in the comment by Jack Schmidt (thanks!):

coreFreeList := Filtered( list, sublist -> IsTrivial( Intersection( sublist ) ) );;

so I'm just answering it formally to prevent it from appearing in the list of unanswered questions.

$\endgroup$
  • 1
    $\begingroup$ $\LARGE{+1}$ for my GAPy friend. :-) $\endgroup$ – mrs May 3 '13 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy