[アーカイブ!】純粋数学、物理学、化学など:トレードとは一切関係ない脳トレ問題集 - ページ 452

 
Mathemat:

大体、金額の制限を撤廃するのが先決です。すべての理屈は本質的に変わらず、ただそれを増やしただけなのです。

引用文の中でCray 1を必要としていることから判断すると、彼のアルゴリズムはあなたのものよりも最適化されていなかったのです :)

1.金額の上限を撤廃することはできない--それが問題の一部なのだ。和が違えば、結果も違う。

2.真面目に言えば、頑張りました。:)

いくつかの機能により、スクリプトは高速に動作します。まず、最も「高速」なのは乗数分解テーブルで、これは最初に1回だけ構築される。

これにより、数検の各サイクルにおいて分解を構築することなく、表を見るだけで済むようになります。

BUT. (!) :(

今はそのサイズにこだわっています。

しかし、表を作らず、その都度乗算に分解するだけなら、Crayなしではやっていけない--問題を解くのに何ヶ月もかかってしまうのだ。

Resumo:他にも最適化しなければならないことがある。:)

と思っています。

 
MetaDriver:

考えること。

根本的なことはまだ何も考えていない。でも、なんとか5000まで上がりました

2011.01.15 21:08:46 MetaSage (EURUSD,M1) //+---- Max = 5000 -------------------+
2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=373; P=19776; a=64; b=309
2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=343; P=9952; a=32; b=311
2011.01.1515 21:08:29 MetaSage (EURUSD,M1) S=233; P=916; a=4; b=229
2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=163; P=4192; a=32; b=131
2011年.01.15 21:08:29 MetaSage (EURUSD,M1) S=149; P=5494; a=67; b=82
2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=137; P=4672; a=64; b=73
2011.01.15 21:09:30 MetaSage (EURUSD,M1) P=139; P=6494; a=67; b=82 2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=127; P=1776; a=16; b=111
2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=89; P=1168; a=16; b=73
2011.01.15 21:09:09 MetaSage (EURUSD,M1) S=97; P=97; a=16; b=78 2011.1.15.の記事です。01.15 21:08:29 MetaSage (EURUSD,M1) S=65; P=244; a=4; b=61
2011.01.15 21:08:29 MetaSage (EURUSD,M1) S=17; P=52; a=4; b=13
2011.01.15 21:09:30 MetaSage (EURUSD,M1) S=16; P=16; a=18; b=18 2011.01.01.15 21:08:29 MetaSage (EURUSD,M1) //+---- Max = 5000 -------------------+
2011.01.15 21:08:29 MetaSage (EURUSD,M1) //============ START ========================
2011.01.1515 21:07:58 MetaSage (EURUSD,M1) at 5000 SMax*(SMax/6-1) = 4160000
2011.01.15 21:07:40 MetaSage (EURUSD,M1) //+---- Maximum amount = 4700 -------------------+
2011.01.15 21:07:24 MetaSage (EURUSD,M1) S=373; P=19776; a=64; b=309
2011.01.15 21:07:2415 21:07:24 MetaSage (EURUSD,M1) S=343; P=9952; a=32; b=311
2011.01.15 21:07:23 MetaSage (EURUSD,M1) S=233; P=916; a=4; b=229
2011.01.01.15 21:07:23 MetaSage (EURUSD,M1) S=163; P=4192; a=32; b=131
2011.01.15 21:07:23 MetaSage (EURUSD,M1) S=137; P=4672; a=64; b=73
2011.01.15 21:07:24 MetaSage (EURUSD,M1) S=133; P=429; a=32; b=154 2011.01.26 MetaSage (EURUSD,M1)15 21:07:23 MetaSage (EURUSD,M1) S=127; P=1776; a=16; b=111
2011.01.15 21:07:23 MetaSage (EURUSD,M1) S=89; P=1168; a=16; b=73
2011年.01.01.15 21:07:23 MetaSage (EURUSD,M1) S=65; P=244; a=4; b=61
2011.01.15 21:07:23 MetaSage (EURUSD,M1) S=17; P=52; a=4; b=13
2011.01.15 21:07:24 MetaSage (EURUSD,M1) P=22; a=2; b=15 2011.01.15 21:07:23 MetaSage (EURUSD,M1) //+---- Max = 4700 -------------------+
2011.01.15 21:07:23 MetaSage (EURUSD,M1) //============== START ==============
2011.01.15 21:06:56 4700でMetaSage (EURUSD,M1) SMax*(SMax/6-1) = 3675400

.

主な最適化のアイデアは、最初の乗数だけをセルに格納し、次の乗数は同じテーブルの参照によって動的に取得することで、テーブルのサイズを縮小することです。

しかし、ゼロから毎回乗算器の列を作る場合に比べればもちろん少ないが、それでも今よりかなり多くの時間を節約することができるのである。

改めて考えてみると

 

なーんだ。スペースフォータイムスワップをするつもりはない。現在の6900というレートでも3分程度はカウントされます。// 嘘です、2個くらいです :)

表を参照する場合は、計算回数が2次関数的に増加します。

確かに、毎回計算すると指数関数的に増えていくのですが、それは自慢できることではなく、とにかく減速しているのです。


2011.01.15 21:33:44 MetaSage (EURUSD,M1) //+---- Max = 6900 -------------------+
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=373; P=19776; a=64; b=309
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=343; P=9952; a=32; b=311
。15 21:33:04 MetaSage (EURUSD,M1) S=233; P=916; a=4; b=229
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=217; P=11392; a=89; b=128
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=233; P=998; b=228 2011.01.21:33:00 MetaSage (EURUSD,M1)15 21:33:04 MetaSage (EURUSD,M1) S=163; P=4192; a=32; b=131
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=137; P=4672; a=64; b=73
2011.01.15 21:33:04 MetaSage (EURUSD,M1) P=163; A=32; b=14815 21:33:04 MetaSage (EURUSD,M1) S=127; P=1776; a=16; b=111
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=89; P=1168; a=16; b=73
2011年.01.01.15 21:33:04 MetaSage (EURUSD,M1) S=65; P=244; a=4; b=61
2011.01.15 21:33:04 MetaSage (EURUSD,M1) S=17; P=52; a=4; b=13
2011.01.15 21:31:4815 21:31:48 MetaSage (EURUSD,M1) With SMax=6900 PMax = SMax*(uint)(SMax/6-1) = 7928100
2011.01.15 21:31:46 MetaSage (EURUSD,M1) //+---- Max = 6900 -------------------+
2011.01.15 21:31:46 MetaSage (EURUSD,M1) //========== START =============== ======================================================================================================================================================================================


7000 - エラー 4004: "ArrayResize(): 要求されたメモリ量が2ギガを超えました。もっと謙虚になれよ"

ここで64xビット+Win64+MT5 64x+メモリ8ギガで1万まで出せる人がいたら、とにかくガックリです。

そこで止めた方がいい。実は元祖賢者は、もうずっと前からケツの穴が開いているんです。

 

うん、止められるよ、確かに。すでにCrayを飛び越えた奇跡を生んでいるんですね。

それでも、数字に関するパターンは残っている、つまり、1つは2の次数である。しかし、奇数が素数でない場合という怪しげなケースもある。

S=127; P=1776; a=16; b=111

S=373; P=19776; a=64; b=309。

 
Mathemat:

1.うん、止められるよ、確かに。もう、クレイが飛び越える奇跡を起こしたんですね。

2.それでも、数字に関するパターンは残っている、つまり、1つは2の次数である。しかし、奇数が素数でない場合という怪しげなケースもある。

S=127; P=1776; a=16; b=111

S=373; P=19776; a=64; b=309。

1.私もそう思います。:)

2.パソコンで確認しろということでしょうか?可能ですが、プリントアウトが長くなってしまいます。何とかなるさ。

 
任意の制約条件に対する和のチェック機能を完成させ、洗練させる予定です。制約が大きくなると解答が少なくなる印象があります。
 
Mathemat:
任意の制約条件に対する和のチェック機能を完成させ、洗練させる予定です。制約が大きくなると、解がどんどん希薄になる印象があります。

事実ではありません。

2011.01.15 22:52:56 MetaSage (EURUSD,M1) //+---- 最大金額 = 8000 -------------------+.
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=373; P=19776; a=64; b=309
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=343; P=9952; a=32; b=311
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=247; P=1912; a=8; b=239
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=233; P=916; a=4; b=229
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=217; P=11392; a=89; b=128
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=185; P=724; a=4; b=181
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=179; P=2608; a=16; b=163
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=163; P=4192; a=32; b=131
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=137; P=4672; a=64; b=73
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=127; P=1776; a=16; b=111
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=89; P=1168; a=16; b=73
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=65; P=244; a=4; b=61
2011.01.15 22:51:55 MetaSage (EURUSD,M1) S=17; P=52; a=4; b=13
2011.01.15 22:50:34 MetaSage (EURUSD,M1) SMax=8000で PMax = SMax*(SMax/8-1) = 7992000
2011.01.15 22:50:33 MetaSage (EURUSD,M1) //+---- Max = 8000 -------------------+.
2011.01.15 22:50:33 MetaSage (EURUSD,M1) //============ START ================================================================================================================

すでに13のソリューションがあります。

 
MetaDriver: すでに13のソリューションがあります。

事実ではありません。これが決定打となる候補です。自分でも同意しているのだから。そして、コンポジット・オッドによる「ソリューション」は、私を非常に不安にさせます--その疑いを立証することはできませんが。

しかし、その傾向は頼もしい限りです。万に近づいているんですね。賢者は賢者、私たちはプログラマー。

 
Mathemat:

1. 事実ではありません。これが決定打となる候補です。自分でも同意しているのだから。そして、コンポジット・オッドによる「ソリューション」は、私を非常に不安にさせます--その疑いを立証することはできませんが。

2. しかし、その傾向は頼もしい限りです。1万円に近づいてきましたね。

1.よく考えていなかったんです。それ以来、自分の脚本への信頼感が増した。:)

チェッカー」を作ろうとしたとき、何もチェックするものがないことに気づいたからです。

ただし、プリンタを作ることはできます。たとえば、メカマティーのフォーラムを戦利品でめちゃくちゃにするとか......。:))))

// そして同時に、あなたを落ち着かせるために。;)

あとは、何を印刷するかですね。

2.そういうものなんです。サインをもらってください。


2011.01.15 23:18:16 MetaSage (EURUSD,M1) //+---- 最大金額 =10000 -------------------+.
2011.01.15 23:16:31 MetaSage (EURUSD,M1) S=373; P=19776; a=64; b=309
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=343; P=9952; a=32; b=311
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=247; P=1912; a=8; b=239
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=233; P=916; a=4; b=229
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=217; P=11392; a=89; b=128
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=191; P=8128; a=64; b=127
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=185; P=724; a=4; b=181
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=179; P=2608; a=16; b=163
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=163; P=4192; a=32; b=131
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=137; P=4672; a=64; b=73
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=127; P=1776; a=16; b=111
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=89; P=1168; a=16; b=73
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=65; P=244; a=4; b=61
2011.01.15 23:16:30 MetaSage (EURUSD,M1) S=17; P=52; a=4; b=13
2011.01.15 23:15:36 MetaSage (EURUSD,M1) SMax=10000の場合 PMax = SMax*(SMax/16-1) = 6240000
2011.01.15 23:15:34 MetaSage (EURUSD,M1) //+---- Max = 10000 -------------------+.
2011.01.15 23:15:34 MetaSage (EURUSD,M1) //============ START ================================================================================================================


優勝したバージョンのスクリプトを添付します。

ファイル:
 

なお、前回の100未満の金額の証拠では、4つの金額しか残っていませんでした。17, 29, 41, 53. そのすべてが素数であり(おそらく偶然)、しかも、それらは一律に2^n+素数という 形で表される(これは偶然ではない)。皆さんのバリエーション豊かなソリューションを見ていると、それがストレスになるんです。

そして、大きなテーブルには何を入れているのですか?不要なものがたくさんあるように見えますが。賢者の頭の中には500万個の数字があるのか?

インターネットで最初の1,000個の簡単なものを発見 - 約8,000個まで。