title: Need to find a minimal basis
body: <p>I'm struggling with finding a minimal basis for the given relation and FD's. Can you please confirm I'm doing it right?</p>
  
  <p>I've got R(A, B, C, D, E, F, G)</p>
  
  <pre><code>A -&gt; G
  E -&gt; F,G
  C,D -&gt; B
  B -&gt; E
  C,D -&gt; A
  </code></pre>
  
  <p>After checking each FD there is nothing to remove, so my minimal basis is </p>
  
  <pre><code>A -&gt; G
  E -&gt; F
  E -&gt; G
  C,D -&gt; B
  B -&gt; E
  C,D -&gt; A
  </code></pre>
  
  <p>and the key is (C,D) as (C,D)+ = (C,D,A,B,E,F,G)</p>
  
  <p>Many thanks</p>