aes-128算法加密_加密算法問題-人工智能中的一種約束滿意問題

aes-128算法加密

The Crypt-Arithmetic problem in Artificial Intelligence is a type of encryption problem in which the written message in an alphabetical form which is easily readable and understandable is converted into a numeric form which is neither easily readable nor understandable. In simpler words, the crypt-arithmetic problem deals with the converting of the message from the readable plain text to the non-readable ciphertext. The constraints which this problem follows during the conversion is as follows:

人工智能中的加密算法問題是一種加密問題,其中,以易于閱讀和理解的字母形式的書面消息被轉換為既不易于閱讀也不被理解的數字形式。 用簡單的話來說,密碼算法問題就是將消息從可讀的純文本轉換為不可讀的密文。 在轉換過程中,此問題遵循的約束如下:

  1. A number 0-9 is assigned to a particular alphabet.

    數字0-9分配給特定的字母。

  2. Each different alphabet has a unique number.

    每個不同的字母都有一個唯一的數字。

  3. All the same, alphabets have the same numbers.

    字母相同,數字相同。

  4. The numbers should satisfy all the operations that any normal number does.

    數字應滿足任何普通數字所做的所有操作。

Let us take an example of the message: SEND MORE MONEY.

讓我們以消息為例:發送更多的錢。

Here, to convert it into numeric form, we first split each word separately and represent it as follows:

在這里,為了將其轉換為數字形式,我們首先將每個單詞分開分割,并表示如下:

    S E N D
M O R E
-------------
M O N E Y

These alphabets then are replaced by numbers such that all the constraints are satisfied. So initially we have all blank spaces.

然后將這些字母替換為數字,以便滿足所有約束條件。 所以最初我們有所有空格。

These alphabets then are replaced by numbers such that all the constraints are satisfied. So initially we have all blank spaces.

然后將這些字母替換為數字,以便滿足所有約束條件。 所以最初我們有所有空格。

We first look for the MSB in the last word which is 'M' in the word 'MONEY' here. It is the letter which is generated by carrying. So, carry generated can be only one. SO, we have M=1.

我們首先在最后一個單詞中尋找MSB,在這里,單詞“ MONEY”中的單詞為“ M” 。 這是隨身攜帶產生的字母。 因此,進位生成只能是一個。 因此,我們有M = 1

Now, we have S+M=O in the second column from the left side. Here M=1. Therefore, we have, S+1=O. So, we need a number for S such that it generates a carry when added with 1. And such a number is 9. Therefore, we have S=9 and O=0.

現在,在左側第二列中有S + M = O。 這里M = 1 。 因此,我們有S + 1 = O。 因此,我們需要一個S的數字,使其與1相加時會產生一個進位。 這樣的數字是9 。 因此,我們有S = 9O = 0

Now, in the next column from the same side we have E+O=N. Here we have O=0. Which means E+0=N which is not possible. This means a carry was generated by the lower place digits. So we have:

現在,在同一側的下一列中,我們有E + O = N。 這里我們有O = 0 。 這意味著E + 0 = N是不可能的。 這意味著低位數字產生了進位。 因此,我們有:

1+E=N ----------(i)

1 + E = N ----------(i)

Next alphabets that we have are N+R=E -------(ii)

我們接下來的字母是N + R = E -------(ii)

So, for satisfying both equations (i) and (ii), we get E=5 and N=6.

因此,為了滿足方程式(i)和(ii) ,我們得到E = 5和N = 6

Now, R should be 9, but 9 is already assigned to S, So, R=8 and we have 1 as a carry which is generated from the lower place digits.

現在, R應該是9 ,但是9已經分配給S ,因此, R = 8,并且我們有一個1的進位,這是從低位數字生成的。

Now, we have D+5=Y and this should generate a carry. Therefore, D should be greater than 4. As 5, 6, 8 and 9 are already assigned, we have D=7 and therefore Y=2.

現在,我們有D + 5 = Y ,這應該產生一個進位。 因此, D應該大于4 。 由于已經分配了5、6、89 ,因此D = 7 ,因此Y = 2

Therefore, the solution to the given Crypt-Arithmetic problem is:

因此, 給定的加密算法問題解決方案是

S=9; E=5; N=6; D=7; M=1; O=0; R=8; Y=2

S = 9; E = 5; N = 6; D = 7; M = 1; O = 0; R = 8; Y = 2

Which can be shown in layout form as:

可以在布局形式中顯示為:

      9 5 6 71 0 8 5-------------1 0 6 5 2--------------

翻譯自: https://www.includehelp.com/ml-ai/crypt-arithmetic-problem-a-type-of-constraint-satisfactory-problem-in-artificial-intelligence.aspx

aes-128算法加密

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/540506.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/540506.shtml
英文地址,請注明出處:http://en.pswp.cn/news/540506.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

讀書筆記《集體智慧編程》Chapter 2 : Make Recommendations

本章概要本章主要介紹了兩種協同過濾(Collaborative Filtering)算法,用于個性化推薦:基于用戶的協同過濾(User-Based Collaborative Filtering,又稱 K-Nearest Neighbor Collaborative Filtering&#xff0…

[轉載] python中的for循環對象和循環退出

參考鏈接: Python中循環 流程控制-if條件 判斷條件,1位true,0是flesh,成立時true,不成立flesh,not取反 if 1; print hello python print true not取反,匹配取反,表示取非1…

設計一個應用程序,以在C#中的按鈕單擊事件上在MessageBox中顯示TextBox中的文本...

Here, we took two controls on windows form that are TextBox and Button, named txtInput and btnShow respectively. We have to write C# code to display TextBox’s text in the MessageBox on Button Click. 在這里,我們在Windows窗體上使用了兩個控件&…

Oracle優化器:星型轉換(Star Query Transformation )

Oracle優化器:星型轉換(Star Query Transformation )Star query是一個事實表(fact table)和一些維度表(dimension)的join。每個維度表都跟事實表通過主外鍵join,且每個維度表之間不j…

[轉載] python循環中break、continue 、exit() 、pass的區別

參考鏈接: Python中的循環和控制語句(continue, break and pass) 1、break:跳出循環,不再執行 用在while和for循環中 用來終止循環語句,即循環條件沒有False條件或者序列還沒被完全遞歸完,也會停止執行循環語句 如果…

JavaScript | 聲明數組并使用數組索引分配元素的代碼

Declare an array, assign elements by indexes and print all elements in JavaScript. 聲明一個數組&#xff0c;通過索引分配元素&#xff0c;并打印JavaScript中的所有元素。 Code: 碼&#xff1a; <html><head><script>var fruits [];fruits[0]"…

[轉載] Python入門(輸入/輸出、數據類型、條件/循環語句)

參考鏈接&#xff1a; Python中的循環技術 在介紹之前我們先來看看計算機的三個根本性基礎&#xff1a; 1.計算機是執行輸入、運算、輸出的機器 2.程序是指令和數據的集合 3.計算機的處理方式有時與人們的思維習慣不同 &#xff08;以上是引自《計算機是怎樣跑起來的》…

第5章 函數與函數式編程

第5章 函數與函數式編程 凡此變數中函彼變數者&#xff0c;則此為彼之函數。 ( 李善蘭《代數學》) 函數式編程語言最重要的基礎是λ演算&#xff08;lambda calculus&#xff09;&#xff0c;而且λ演算的函數可以傳入函數參數&#xff0c;也可以返回一個函數。函數式編程 (簡稱…

mcq 隊列_人工智能能力問答中的人工智能概率推理(MCQ)

mcq 隊列1) Which of the following correctly defines the use of probabilistic reasoning in AI systems? In situations of uncertainty, probabilistic theory can help us give an estimate of how much an event is likely to occur or happen.It helps to find the pr…

[轉載] Python中的xrange和range的區別

參考鏈接&#xff1a; Python中的range()和xrange() 在python2 中 range(start,end,step)返回一個列表&#xff0c;返回的結果是可迭代對象&#xff0c;但不是迭代器。iter()轉化為列表迭代器。xrange()返回的是一個序列&#xff0c;他也是可迭代對象&#xff0c;但不是迭代…

Kubernetes基礎組件概述

本文講的是Kubernetes基礎組件概述【編者的話】最近總有同學問Kubernetes中的各個組件的相關問題&#xff0c;其實這些概念內容在官方文檔中都有&#xff0c;奈何我們有些同學可能英文不好&#xff0c;又或者懶得去看&#xff0c;又或者沒有找到&#xff0c;今天有時間就專門寫…

c語言將鏈表寫入二進制文件_通過逐級遍歷將二進制樹轉換為單鏈表的C程序

c語言將鏈表寫入二進制文件Problem statement: Write a C program to convert a binary tree into a single linked list by traversing level-wise. 問題陳述&#xff1a;編寫一個C程序&#xff0c;通過逐級遍歷將二進制樹轉換為單個鏈表 。 Example: 例&#xff1a; The ab…

[轉載] C Primer Plus 第6章 C控制語句 6.16 編程練習及答案

參考鏈接&#xff1a; 用Python打印金字塔圖案的程序 2019獨角獸企業重金招聘Python工程師標準>>> 1、編寫一個程序&#xff0c;創建一個具有26個元素的數組&#xff0c;并在其中存儲26個小寫字母。并讓該程序顯示該數組的內容。 #include int main (void) { …

C# String和string的區別

C#中同時存在String與string MSDN中對string的說明&#xff1a; string is an alias for String in the .NET Framework。string是String的別名而已&#xff0c;string是c#中的類&#xff0c;String是Framework的類&#xff0c;C# string 映射為 Framework的 String。如果用str…

要求用戶在Python中輸入整數| 限制用戶僅輸入整數值

input() function can be used for the input, but it reads the value as a string, then we can use the int() function to convert string value to an integer. input()函數可用于輸入&#xff0c;但它將值讀取為字符串&#xff0c;然后可以使用int()函數將字符串值轉換為…

[轉載] python——if語句、邏輯運算符號

參考鏈接&#xff1a; 用Python鏈接比較運算符 1.if條件判斷語句&#xff1a; if 要判斷的條件(True): 條件成立的時候&#xff0c;要做的事情 elif 要判斷的條件(True): .... elif 要判斷的條件(True): .... else: 條件不成立的時候要做的事情 示例&#xff1a; 判斷學生…

洛谷 P2689 東南西北【模擬/搜索】

題目描述 給出起點和終點的坐標及接下來T個時刻的風向(東南西北)&#xff0c;每次可以選擇順風偏移1個單位或者停在原地。求到達終點的最少時間。 如果無法偏移至終點&#xff0c;輸出“-1”。 輸入輸出格式 輸入格式&#xff1a; 第一行兩個正整數x1,y1&#xff0c;表示小明所…

單鏈表遍歷_單鏈表及其遍歷實現的基本操作

單鏈表遍歷單鏈表 (Single linked list) Single linked list contains a number of nodes where each node has a data field and a pointer to next node. The link of the last node is to NULL, indicates end of list. 單個鏈表包含許多節點&#xff0c;其中每個節點都有一…

[轉載] python中for語句用法_詳解Python中for循環的使用_python

參考鏈接&#xff1a; 在Python中將else條件語句與for循環一起使用 這篇文章主要介紹了Python中for循環的使用,來自于IBM官方網站技術文檔,需要的朋友可以參考下 for 循環 本系列前面 “探索 Python&#xff0c;第 5 部分&#xff1a;用 Python 編程” 一文討論了 if 語句和…

windows 軟鏈接的建立及刪除

在windows服務器上有時有這樣的需求&#xff0c;你的文件在f:\test中&#xff0c;但由于其它原因用戶訪問的是e:\test&#xff0c;如果又希望e:\test 中的文件與f:\test的保持同步&#xff0c;除了用同步軟件來做外&#xff0c;可以用windows 的文件夾映射來做 cmd: mklink /J …