それでも、今朝、コンピュータ端末を見て、PCが解を発見していることが分かったときは ―― さすがの私も目を疑いました。

昨夜から、整数1600桁の解探索(解の組み合わせは、2.25x10の1118乗個)をGA(遺伝的アルゴリズム)のプログラムを回し続けています。

Since last night, I have been running a GA (Genetic Algorithm) program for a solution search of 1600 integer digits (solution combinations are 2.25x10 to the 1118th power).

結果として、この1600桁の解探索は、約20分間程度で完了しました。

As a result, this 1600-digit solution search took about 20 minutes to complete.

私にとって、GAはもはや研究対象ではありません。

For me, GA is no longer a research subject.

このGAという「聖剣」を作るフェーズは、私の中では、すでに30年前に終了しています。

In my mind, the phase of creating this "holy sword" called GA ended 30 years ago.

今では、ネットに落ちている「聖剣(=GAのプログラム)」を拾ってきては、数カ所、適当に改造して使っているフェーズです。

Now, I am picking up "holy sword (=GA program)" from the net and using it in several places with appropriate modifications.

-----

ところが、GAのアルゴリズムを回し始めると、PCから聞いたことがないような異音が発生します。

However, when I started to turn the GA algorithm, I heard a strange noise that I had never heard before from the PC.

ファンが全力運転を開始し、PCの筐体温度が急上昇します。

The fan starts running at full power, and the PC chassis temperature rises sharply.

PCが壊れてしまうのではないか、と怖くなるレベルです。

It is to the point where I am afraid that my PC will break.

----

そこで、計算専用マシンとして購入しておいたゲーミング向けのPCに、プログラムを移植して計算することにしました。

Therefore, we decided to port the program to a PC for gaming, which we had purchased as a dedicated calculation machine, to perform calculations.

さすがは、高性能スペックのPCです。

As you would expect from a PC with high-performance specs.

こっちでは、このような異音を発生させることなく、膨大な計算を粛々と実施できるようでした。

The machine seemed to be able to solemnly perform many calculations without generating such unusual noises.

ですので、今度は、解の対象を、1600桁から、その10倍の16000桁にして計算を試みてみました。

So, this time, I tried to calculate the solution with 16000 digits, ten times the number of digits of the original 1600 digits.

電卓では、解空間を計算できなかったので、ChatGPTに尋ねてみたら、

I couldn't calculate the solution space with my calculator, so I asked ChatGPT, and the answer was

『これは非常に大きな数であり、その桁数は何千桁にも及びます。実用的な目的でこの数を扱う際は、通常、対数やその他の数学的手法を使用して近似値や桁数を扱います。』

"This is a huge number, with thousands of digits. When dealing with this number for practical purposes, we usually use logarithms and other mathematical techniques to deal with approximations and digits."

と言われて、逃げられました ―― まあ、ChatGPTが逃げることは、結構あります。

ChatGPT got away with it -- well, it is pretty common for ChatGPT to get away with it.

-----

そういえば、私は、ChatGPTのセッションを維持するために、40分間単位でアラームを鳴らせて、定期的に質問をするようにしています。

Come to think of it, I try to keep my ChatGPT sessions going by setting the alarm to go off in 40-minute increments so that I can ask questions regularly.

ですので、40分ごとに、たわいもない質問をChatGPTに投げかけています。

So, every 40 minutes, I ask ChatGPT a trivial question.

例えば、

For example, I asked ChatGPT

『拉致被害者を救出する為に、非合法の武装組織を構成して、武力奪還をした場合に発生するであろう問題を列挙して下さい』

"List the problems that would arise if an illegal armed group were to be formed to rescue the abductees and then recapture them by force."

という質問をしていました。

ChatGPTは、政府答弁のような模範的な回答をしていましたよ(興味のある方は試してみて下さい)。

ChatGPT had an exemplary answer, like a government answer (try it if interested).

閑話休題

Now, let's return to the main subject

-----

ともあれ、16000桁の解の解空間が、宇宙レベルも超越する広さとなることは間違いありません。

At any rate, there is no doubt that the solution space of a 16,000-digit solution will be so large that it will transcend even the cosmic level.

この計算を強行してみたのですが、当然に20分間では無理でした。

I tried to force this calculation, but it could not be done in 20 minutes.

昨夜、私はPCを起動したまま就寝しました。

Last night, I went to bed with my computer running.

ところが、昨夜、そのゲーミングPCからの物凄い異音(2秒間くらい)で叩き起こされました。

However, last night, I was awakened by a terrible noise (for about 2 seconds) from that gaming PC.

それも2回。

Twice, too.

『さすがのゲーミングPCも、悲鳴を上げた』というところでしょうか。

The gaming PCs have also screamed," I thought.

それでも、今朝、コンピュータ端末を見て、PCが解を発見していることが分かったときは ―― さすがの私も目を疑いました。

Still, when I looked at the computer terminal this morning and found that the PC had found the solution -- as expected, I couldn't believe my eyes.

―― GAって、本当に凄いな

"GA is awesome."

と実感しました。

I realized that.

まあ、高性能PCによって、かなり無茶な計算ができるようになっていることは、それ自体、私にとってはとても助かっています。

Well, I am greatly helped by the fact that high-performance PCs allow me to do some pretty crazy calculations.

-----

ちなみに解空間の数ですが、このプログラムで求められます。興味のある方はどうぞ。

By the way, this is the number of solution spaces that can be obtained with this program. If you are interested, please go ahead.

package main

import (
    "fmt"
    "math/big"
)

func main() {
    // big.Int型の変数を作成
    base := big.NewInt(5)
    exponent := big.NewInt(16000)
    
    // 結果を格納する変数を作成
    result := new(big.Int)
    
    // べき乗を計算
    result.Exp(base, exponent, nil)
    
    // 結果を出力
    fmt.Println(result)
}

 

Introduction to AI Technologies-3rd(handout)_Mar_17_Ebata

 

2023,江端さんの忘備録

Posted by ebata