⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 advise.m

📁 vigenere密码解密的matlab实现
💻 M
字号:
function aceind=advise(shufvals,p)% This function advises the player as to which card is the ace% It uses the fact that we chose a prime p such that the numerical % value of ace is a quadratic non-residue, while the numerical values% of the other cards are quadratic residuessln=length(shufvals);for j=1:sln,   test(j)=powermod(shufvals(j),(p-1)/2,p);end;aceind=find(test~=1);disp(['Ace Index: ', num2str(aceind)]);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -