Efficiently computing GCDs in $mathbb{Z}[(1+sqrt{-19})/2]$












8












$begingroup$


The ring $mathbb{Z}[(1+sqrt{-19})/2]$ is a PID; hence any two elements have a GCD. How you would compute their GCD?



In a Euclidean domain, you would use the Euclidean algorithm. But $mathbb{Z}[(1+sqrt{-19})/2]$ is not Euclidean.



If you knew prime factorizations of the two elements, you could immediately compute the GCD. But surely factoring in $mathbb{Z}[(1+sqrt{-19})/2]$ is at least as hard as factoring in $mathbb{Z}$. At least for now, we do not know how to do this efficiently.



So, is there an efficient algorithm to compute GCD?



(You may use the de facto interpretation of "efficient" as "polynomial time".)










share|cite|improve this question









$endgroup$












  • $begingroup$
    It is possible to use the Dedekind-Hasse criterion for devising an algorithm; see arxiv.org/pdf/1205.1147.pdf
    $endgroup$
    – franz lemmermeyer
    Feb 4 at 15:28


















8












$begingroup$


The ring $mathbb{Z}[(1+sqrt{-19})/2]$ is a PID; hence any two elements have a GCD. How you would compute their GCD?



In a Euclidean domain, you would use the Euclidean algorithm. But $mathbb{Z}[(1+sqrt{-19})/2]$ is not Euclidean.



If you knew prime factorizations of the two elements, you could immediately compute the GCD. But surely factoring in $mathbb{Z}[(1+sqrt{-19})/2]$ is at least as hard as factoring in $mathbb{Z}$. At least for now, we do not know how to do this efficiently.



So, is there an efficient algorithm to compute GCD?



(You may use the de facto interpretation of "efficient" as "polynomial time".)










share|cite|improve this question









$endgroup$












  • $begingroup$
    It is possible to use the Dedekind-Hasse criterion for devising an algorithm; see arxiv.org/pdf/1205.1147.pdf
    $endgroup$
    – franz lemmermeyer
    Feb 4 at 15:28
















8












8








8





$begingroup$


The ring $mathbb{Z}[(1+sqrt{-19})/2]$ is a PID; hence any two elements have a GCD. How you would compute their GCD?



In a Euclidean domain, you would use the Euclidean algorithm. But $mathbb{Z}[(1+sqrt{-19})/2]$ is not Euclidean.



If you knew prime factorizations of the two elements, you could immediately compute the GCD. But surely factoring in $mathbb{Z}[(1+sqrt{-19})/2]$ is at least as hard as factoring in $mathbb{Z}$. At least for now, we do not know how to do this efficiently.



So, is there an efficient algorithm to compute GCD?



(You may use the de facto interpretation of "efficient" as "polynomial time".)










share|cite|improve this question









$endgroup$




The ring $mathbb{Z}[(1+sqrt{-19})/2]$ is a PID; hence any two elements have a GCD. How you would compute their GCD?



In a Euclidean domain, you would use the Euclidean algorithm. But $mathbb{Z}[(1+sqrt{-19})/2]$ is not Euclidean.



If you knew prime factorizations of the two elements, you could immediately compute the GCD. But surely factoring in $mathbb{Z}[(1+sqrt{-19})/2]$ is at least as hard as factoring in $mathbb{Z}$. At least for now, we do not know how to do this efficiently.



So, is there an efficient algorithm to compute GCD?



(You may use the de facto interpretation of "efficient" as "polynomial time".)







abstract-algebra ring-theory algorithms






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Mar 7 '15 at 3:35









echinodermataechinodermata

2,52911228




2,52911228












  • $begingroup$
    It is possible to use the Dedekind-Hasse criterion for devising an algorithm; see arxiv.org/pdf/1205.1147.pdf
    $endgroup$
    – franz lemmermeyer
    Feb 4 at 15:28




















  • $begingroup$
    It is possible to use the Dedekind-Hasse criterion for devising an algorithm; see arxiv.org/pdf/1205.1147.pdf
    $endgroup$
    – franz lemmermeyer
    Feb 4 at 15:28


















$begingroup$
It is possible to use the Dedekind-Hasse criterion for devising an algorithm; see arxiv.org/pdf/1205.1147.pdf
$endgroup$
– franz lemmermeyer
Feb 4 at 15:28






$begingroup$
It is possible to use the Dedekind-Hasse criterion for devising an algorithm; see arxiv.org/pdf/1205.1147.pdf
$endgroup$
– franz lemmermeyer
Feb 4 at 15:28












2 Answers
2






active

oldest

votes


















4












$begingroup$

Not a complete answer, just trying to draw attention to your question.



Humans such as yourself generally find factorization in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ to be more difficult than factorization in $mathbb{Z}$ because $mathbb{Z}$ is familiar and $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ is unfamiliar.



So if I was bedraggled by human failings, I would see about how to leverage my familiarity with one to my advantage in the other. The way is with norms.



If the norms of two numbers in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ are coprime, then the two numbers must be coprime as well. Example: $$Nleft( frac{3 + sqrt{-19}}{2} right) = 7$$ and $$Nleft( frac{9 + sqrt{-19}}{2} right) = 25,$$ so since $gcd(7, 25) = 1$, this must mean that $$gcdleft( frac{3 + sqrt{-19}}{2}, frac{9 + sqrt{-19}}{2} right) = 1$$ as well.



But if the norms do have a common divisor, then it's a little more difficult, for humans anyway. Example: $$gcdleft( frac{3 + sqrt{-19}}{2}, 11 + sqrt{-19} right) = ???$$






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    The last time I wanted to do this, I used the $O(n^2)$ algorithm described in Agarwal and Frandsen. I think I recall that your specific case is easier because $-19 < 0$.






    share|cite|improve this answer









    $endgroup$













      Your Answer





      StackExchange.ifUsing("editor", function () {
      return StackExchange.using("mathjaxEditing", function () {
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      });
      });
      }, "mathjax-editing");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "69"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1179085%2fefficiently-computing-gcds-in-mathbbz1-sqrt-19-2%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4












      $begingroup$

      Not a complete answer, just trying to draw attention to your question.



      Humans such as yourself generally find factorization in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ to be more difficult than factorization in $mathbb{Z}$ because $mathbb{Z}$ is familiar and $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ is unfamiliar.



      So if I was bedraggled by human failings, I would see about how to leverage my familiarity with one to my advantage in the other. The way is with norms.



      If the norms of two numbers in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ are coprime, then the two numbers must be coprime as well. Example: $$Nleft( frac{3 + sqrt{-19}}{2} right) = 7$$ and $$Nleft( frac{9 + sqrt{-19}}{2} right) = 25,$$ so since $gcd(7, 25) = 1$, this must mean that $$gcdleft( frac{3 + sqrt{-19}}{2}, frac{9 + sqrt{-19}}{2} right) = 1$$ as well.



      But if the norms do have a common divisor, then it's a little more difficult, for humans anyway. Example: $$gcdleft( frac{3 + sqrt{-19}}{2}, 11 + sqrt{-19} right) = ???$$






      share|cite|improve this answer









      $endgroup$


















        4












        $begingroup$

        Not a complete answer, just trying to draw attention to your question.



        Humans such as yourself generally find factorization in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ to be more difficult than factorization in $mathbb{Z}$ because $mathbb{Z}$ is familiar and $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ is unfamiliar.



        So if I was bedraggled by human failings, I would see about how to leverage my familiarity with one to my advantage in the other. The way is with norms.



        If the norms of two numbers in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ are coprime, then the two numbers must be coprime as well. Example: $$Nleft( frac{3 + sqrt{-19}}{2} right) = 7$$ and $$Nleft( frac{9 + sqrt{-19}}{2} right) = 25,$$ so since $gcd(7, 25) = 1$, this must mean that $$gcdleft( frac{3 + sqrt{-19}}{2}, frac{9 + sqrt{-19}}{2} right) = 1$$ as well.



        But if the norms do have a common divisor, then it's a little more difficult, for humans anyway. Example: $$gcdleft( frac{3 + sqrt{-19}}{2}, 11 + sqrt{-19} right) = ???$$






        share|cite|improve this answer









        $endgroup$
















          4












          4








          4





          $begingroup$

          Not a complete answer, just trying to draw attention to your question.



          Humans such as yourself generally find factorization in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ to be more difficult than factorization in $mathbb{Z}$ because $mathbb{Z}$ is familiar and $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ is unfamiliar.



          So if I was bedraggled by human failings, I would see about how to leverage my familiarity with one to my advantage in the other. The way is with norms.



          If the norms of two numbers in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ are coprime, then the two numbers must be coprime as well. Example: $$Nleft( frac{3 + sqrt{-19}}{2} right) = 7$$ and $$Nleft( frac{9 + sqrt{-19}}{2} right) = 25,$$ so since $gcd(7, 25) = 1$, this must mean that $$gcdleft( frac{3 + sqrt{-19}}{2}, frac{9 + sqrt{-19}}{2} right) = 1$$ as well.



          But if the norms do have a common divisor, then it's a little more difficult, for humans anyway. Example: $$gcdleft( frac{3 + sqrt{-19}}{2}, 11 + sqrt{-19} right) = ???$$






          share|cite|improve this answer









          $endgroup$



          Not a complete answer, just trying to draw attention to your question.



          Humans such as yourself generally find factorization in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ to be more difficult than factorization in $mathbb{Z}$ because $mathbb{Z}$ is familiar and $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ is unfamiliar.



          So if I was bedraggled by human failings, I would see about how to leverage my familiarity with one to my advantage in the other. The way is with norms.



          If the norms of two numbers in $mathbb{Z}left[frac{1 + sqrt{-19}}{2}right]$ are coprime, then the two numbers must be coprime as well. Example: $$Nleft( frac{3 + sqrt{-19}}{2} right) = 7$$ and $$Nleft( frac{9 + sqrt{-19}}{2} right) = 25,$$ so since $gcd(7, 25) = 1$, this must mean that $$gcdleft( frac{3 + sqrt{-19}}{2}, frac{9 + sqrt{-19}}{2} right) = 1$$ as well.



          But if the norms do have a common divisor, then it's a little more difficult, for humans anyway. Example: $$gcdleft( frac{3 + sqrt{-19}}{2}, 11 + sqrt{-19} right) = ???$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 20 '18 at 23:26









          The Short OneThe Short One

          5941625




          5941625























              1












              $begingroup$

              The last time I wanted to do this, I used the $O(n^2)$ algorithm described in Agarwal and Frandsen. I think I recall that your specific case is easier because $-19 < 0$.






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                The last time I wanted to do this, I used the $O(n^2)$ algorithm described in Agarwal and Frandsen. I think I recall that your specific case is easier because $-19 < 0$.






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  The last time I wanted to do this, I used the $O(n^2)$ algorithm described in Agarwal and Frandsen. I think I recall that your specific case is easier because $-19 < 0$.






                  share|cite|improve this answer









                  $endgroup$



                  The last time I wanted to do this, I used the $O(n^2)$ algorithm described in Agarwal and Frandsen. I think I recall that your specific case is easier because $-19 < 0$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 21 '18 at 0:59









                  Eric TowersEric Towers

                  33k22370




                  33k22370






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1179085%2fefficiently-computing-gcds-in-mathbbz1-sqrt-19-2%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Willebadessen

                      Ida-Boy-Ed-Garten

                      Residenzschloss Arolsen