advances in alternative non adjacent form representations
play

Advances in Alternative Non-Adjacent Form Representations Gildas - PowerPoint PPT Presentation

Preliminaries Theoretical Results Indocrypt, December 20-22, 2004 Algorithmic Aspects Conclusion Advances in Alternative Non-Adjacent Form Representations Gildas Avoine, Jean Monnerat, and Thomas Peyrin EPFL Lausanne, Switzerland COLE


  1. Preliminaries Theoretical Results Indocrypt, December 20-22, 2004 Algorithmic Aspects Conclusion Advances in Alternative Non-Adjacent Form Representations Gildas Avoine, Jean Monnerat, and Thomas Peyrin EPFL Lausanne, Switzerland ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  2. Preliminaries Theoretical Results Outline Algorithmic Aspects Conclusion Preliminaries Theoretical Results Algorithmic Aspects Conclusion G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  3. Preliminaries Theoretical Results Algorithmic Aspects Conclusion Preliminaries G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  4. Preliminaries Theoretical Results Integer Representations Algorithmic Aspects Conclusion Binary representation n = � a i 2 i where a i ∈ { 0 , 1 } e.g. (13) 10 = (001101) 2 = (1101) 2 . Unicity: The most significant bit is not 0. Ternary representation n = � a i 2 i where a i ∈ { 0 , 1 , ¯ 1 } e.g. (13) 10 = (100¯ 1¯ 1) 2 = (1¯ 1000¯ 1¯ 1) 2 = (10¯ 101) 2 . Unicity: For any two adjacent digits, at least one is zero and the most significant digit is not 0 [Reitwiesner, 1960]. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  5. Preliminaries Theoretical Results Foundations Algorithmic Aspects Conclusion { 0 , 1 , ¯ 1 } can be generalized to { 0 , 1 , x } . Improvement of [Muir and Stinson, 2003] The canonical representation of an integer using { 0 , 1 , x } is defined as in the case { 0 , 1 , ¯ 1 } : For any two adjacent digits, at least one is zero and the most significant digit is not 0. Such a representation is called the { 0 , 1 , x } -Non-Adjacent Form (NAF), if it exists. Which sets D = { 0 , 1 , x } where x ∈ Z are such that every positive integer has a D -NAF? Such a set { 0 , 1 , x } is called a Non-Adjacent Digit Set (NADS). G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  6. Preliminaries Theoretical Results Known NADS Algorithmic Aspects Conclusion { 0 , 1 , ¯ 1 } { 0 , 1 , 3 } { 0 , 1 , − 5 } , { 0 , 1 , − 13 } , { 0 , 1 , − 17 } , { 0 , 1 , − 25 } , etc. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  7. Preliminaries Theoretical Results Known NADS Algorithmic Aspects Conclusion { 0 , 1 , ¯ 1 } { 0 , 1 , 3 } → In the following, we will consider x negative { 0 , 1 , − 5 } , { 0 , 1 , − 13 } , { 0 , 1 , − 17 } , { 0 , 1 , − 25 } , etc. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  8. Preliminaries Theoretical Results Infinite Families Algorithmic Aspects Conclusion Example of infinite family of NADS [Muir and Stinson, 2003]: Let x be a negative integer such that x ≡ 3 (mod 4) and x = 7 − 2 t , t ≥ 3, { 0 , 1 , x } is a NADS iff t is odd e.g. -1, -25, -121, etc. Example of infinite family of NON-NADS [Muir and Stinson, 2003]: = 11 · 2 i with i ≥ 0, then Let x be a negative integer, if 3 − x 4 { 0 , 1 , x } is a not a NADS (so called NON-NADS) e.g. -41, -85, -173, etc. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  9. Preliminaries Theoretical Results NADS Algorithmic Aspects Conclusion How to determine whether or not a set D = { 0 , 1 , x } is a NADS? Definition D is a NADS iff every positive integer has a D -NAF. Theorem (Muir and Stinson) If every positive integer in [0 , ⌊− x / 3 ⌋ ] has a D-NAF, then D is a NADS. Theorem (Muir and Stinson) If every positive integer in [0 , ⌊− x / 3 ⌋ ] and equal to 3 modulo 4 has a D-NAF, then D is a NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  10. Preliminaries Theoretical Results NAF Algorithmic Aspects Conclusion How to determine whether or not an integer n has a D -NAF? Theorem A positive integer n has a D-NAF iff, f D ( n ) has a D-NAF, where n f D ( n ) = if n ≡ 0 (mod 4) 4 n − 1 f D ( n ) = if n ≡ 1 (mod 4) 4 n f D ( n ) = if n ≡ 2 (mod 4) 2 n − x f D ( n ) = if n ≡ 3 (mod 4) 4 G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  11. Preliminaries Theoretical Results Graph of n Algorithmic Aspects Conclusion → f 2 → f 3 G n : n − → f D ( n ) − D ( n ) − D ( n ) − → . . . − → 0 f 4 D ( n ) ւ տ → f 2 f 3 G n : n − → f D ( n ) − D ( n ) − → D ( n ) Either f D ( n ) reaches 0 or f D ( n ) loops because: f D ( n ) ≤ − x 3 when n is in the search domain 0 is the only fixpoint of f D G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  12. Preliminaries Theoretical Results Graph of n Algorithmic Aspects Conclusion → f 2 → f 3 G n : n − → f D ( n ) − D ( n ) − D ( n ) − → . . . − → 0 f 4 D ( n ) ւ տ → f 2 f 3 G n : n − → f D ( n ) − D ( n ) − → D ( n ) Either f D ( n ) reaches 0 or f D ( n ) loops because: f D ( n ) ≤ − x 3 when n is in the search domain 0 is the only fixpoint of f D A positive integer n has a D -NAF iff G n does not contain cycle. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  13. Preliminaries Theoretical Results Algorithmic Aspects Conclusion Theoretical Results G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  14. Preliminaries Theoretical Results Contents Algorithmic Aspects Conclusion Search domain Generators of infinite families of NON-NADS Worst NON-NADS G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  15. Preliminaries Theoretical Results Search Domain Algorithmic Aspects Conclusion Theorem If every positive integer in [0 , ⌊− x / 3 ⌋ ] has a D-NAF, then D is a NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  16. Preliminaries Theoretical Results Search Domain Algorithmic Aspects Conclusion Theorem If 3 ∤ x and every positive integer in [0 , ⌊− x / 3 ⌋ ] has a D-NAF, then D is a NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  17. Preliminaries Theoretical Results Search Domain Algorithmic Aspects Conclusion Theorem If 3 ∤ x and every positive integer in [0 , ⌊− x / 6 ⌋ ] has a D-NAF, then D is a NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  18. Preliminaries Theoretical Results Search Domain Algorithmic Aspects Conclusion Theorem If 3 ∤ x and every positive integer in [0 , ⌊− x / 6 ⌋ ] has a D-NAF, then D is a NADS. Theorem If 3 ∤ x and 7 ∤ x and every positive integer in [0 , ⌊− x / 12 ⌋ ] ∪ [ ⌊− x / 7 ⌋ , ⌊− x / 6 ⌋ ] has a D-NAF, then D is a NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  19. Preliminaries Theoretical Results Generators of NON-NADS Algorithmic Aspects Conclusion n has a D -NAF if and only if G n does not contain any cycle. If it exists n such that G n contains a cycle, D is not a NADS. Instead of looking for NADS, we look for NON-NADS, obtaining (theoretically) the NADS by completion. We consider a cycle of a given form and deduce the x ’s for which it exists an n which lies in this cycle. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  20. Preliminaries Theoretical Results Generators of NON-NADS Algorithmic Aspects Conclusion We choose the length t of the cycle and solve f t D ( n ) = n . Define f 0 ( n ) = n 4 , f 1 ( n ) = n − 1 4 , f 2 ( n ) = n 2 , and f 3 ( n ) = n − x 4 . We choose the form of the cycle and solve f t D ( n ) = f i t ◦ f i t − 1 ◦ . . . f i 1 ( n ) = n , for some chosen i k ∈ { 0 , 1 , 2 , 3 } for k = 1 , 2 . . . , t . Such a cycle is denoted as i 1 | i 2 | . . . | i t . G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  21. Preliminaries Theoretical Results 2-cycles Algorithmic Aspects Conclusion We have 3 possible cycles of length 2, namely 3 | 0, 3 | 1 and 3 | 2. They lead to the equations n − x 16 = n , n − x − 4 = n and 16 n − x = n . 8 Since n ≡ 3 (mod 4), we can set n = 4 k − 1. Theorem If x = − 60 k + 15 , x = − 60 k + 11 or x = − 28 k + 7 with k ∈ N , then { 0 , 1 , x } is a NON-NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  22. Preliminaries Theoretical Results t-Cycles Algorithmic Aspects Conclusion We apply our method to a cycle of length t of the form 3 | 3 | 3 | . . . | 3 | 0. We solve f 0 ◦ f t − 1 ( n ) = n for t ≥ 2 3 Theorem Let t ≥ 2 and k > 0 be two integers and x = − (4 k − 1)(2 2 t − 1 − 1) . Then { 0 , 1 , x } is a NON-NADS. G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

  23. Preliminaries Theoretical Results NADS Density Algorithmic Aspects Conclusion G. Avoine, J. Monnerat, and T. Peyrin Advances in Alternative Non-Adjacent Form Representations

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend