How to calculate complexity algorithm code program?

조회 수: 6 (최근 30일)
Bakka
Bakka 2014년 1월 28일
댓글: Walter Roberson 2020년 4월 20일
Hi everyone, I've build program, now I want to calculate complexity algorithm ? could you please let me know how to do that? is there any reference for calculation process? Many thanks
  댓글 수: 3
Bakka
Bakka 2014년 1월 29일
Dear Mr. @Yao Li , I build steganography program with cryptography as an security . the method of steganography is pixel value differencing, and the cryptography is use rsa. how can I calculate the complexity algorithm? need your advice, many thanks
Walter Roberson
Walter Roberson 2014년 1월 29일
We cannot be of assistance in any analysis of RSA; the topic is forbidden for discussion here due to USA laws.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 28일
You can google the topic.
It has been proven that there is no possible deterministic algorithm which can calculate the Algorithmic Complexity of all possible programs.
MATLAB does not provide any routines to calculate Algorithmic Complexity.
  댓글 수: 2
Hazim Nasir
Hazim Nasir 2020년 4월 19일
Kindly, Can you cite a reference that:
that there is no possible deterministic algorithm which can calculate the Algorithmic Complexity of all possible programs.
Walter Roberson
Walter Roberson 2020년 4월 20일
This is a simple consequence of the (Turing's) Halting Theorem.
It is not possible to write a program, P1, that can take the code for any arbitrary program, P2, as input, with P1 telling you whether P2 halts on all possible inputs. The proof involves deliberate infinite loops and proof by contradiction on feeding a slightly modified version of P1 to itself. There are tight connections to Goedel's Incompleteness Theorem, that there are statements that are true but which cannot be formally proven to be true.
Anyhow, if you cannot write a program that can predict with certainty whether any given program will halt or not, then you cannot predict the algorithmic complexity of all arbitrary programs

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by