將錯就錯的knuth 河內塔
在這篇報告中,我們探索了「將錯就錯的Knuth 河內塔問題」。傳統河內塔問題在電腦科學上佔有重要的地位,是一個極具內涵的模型。由於這個模型的深厚數學內涵,使其和巴斯卡三角形建立了緊密的連結,且利用這個緊密的數學連結,設計出復原任意起始狀態的良好演算法。Knuth 河內塔起因於數學家Knuth 在論文[3]中,描述傳統的河內塔問題時所發生的一次筆誤。在這個新的規則之下,我們意外發現Knuth 河內塔存在著一個和傳統河內塔平行的模型,此模型在電腦科學及數學上有著完全不同於傳統河內塔的內涵。我們的研究主要如下:(分別為內文中的四大段)(一) 結構分析。移動環所需要的次數,如何移動環並分析每一次動作所動的環,及每個環何時被動到並給出演算法。(二) 正整數的分割。所有的移動步驟將正整數做了一個新的分割(Partition);此分割模k之後有良好的循環性質。(三) 費波那契真分數的排序。這個正整數的分割形成一張表,這張表恰好就是分子分母皆為費波那契真分數之排序。(四) 隨意亂排的Knuth 河內塔復原演算法。在Knuth 河內塔的規定下將起始狀態改變,找出良好的復原演算法,並分析。 In this project we study the "Knuth Hanoi Tower", which is motivated by a typo in a paper of Knuth. This inadvertently typo leads to a new rule of moving the discs on the Hanoi Tower (see introduction below for definition). Although seemingly similar to the traditional Hanoi-Tower problem, it turns out that under this rule the "Knuth Hanoi Tower" problem consists of amazing properties, and is totally different from the traditional one. Our study focuses on the following directions: (1) Structure analyzing: We analysis the sequences recording the disc moving and offer enumeration results and recurrsive/non-recurrsive algorithms. (2) Partition of N: The moving sequence forms a partition (a table) of N, which has an amazing congruence property. (3) The order of Fibonacci proper fraction: The row/column of the partition table is, even more amazing, exactly the order when sorting the Fibonacci proper fraction with fixed denominator/numerator. (4) The Restoration of an arbitrary initial state: We offer an efficient algorithm for restoring any initial state of discs. We hope that our study on the "Knuth Hanoi Tower" offers a simple, neat, and new example on the theory of Algorithm, Number theory and Combinatorics.
CryptoDefender - afast way to encrypt your files
1. Purpose of the research\r Nowadays, many encryption software are available to computer user. However, very few people use them which result in many cases of information and data leakage due mainly over the Internet. Most people use USB Flash Drive to store and carry confident files back home to work on. When the USB Drive is lost, the files stored are often leaked. To prevent this type of incident occurring, “CryptoDefender” is developed to enhance files protection and to change user’s habit in handling confidential information. \r 2. Procedures\r “CryptoDefender” is an add-in for common application software, e.g. Word, Excel, etc. It will appear as a new tab in the ribbon which provides the software an alternative for saving and opening a file. It protects the files in two ways: encryption and steganography. The data is first encrypted into cipher text as these encrypted data will be hidden in an image file to lower suspicion of readers. All of these procedures will be done by one click. For encrypt and decrypt, the user just needs to click the “Protect” and “Decrypt”. An extremely fast way to encrypt the file is “Quick Protect”. It will randomly choose an image from the image folder according to their file size. This function saves the time for choosing an image.\r 3. Data\r The method for steganography is using last two bit of R, last three bit of G and B to store the encrypted data. In 24-bit bitmap, RGB is represented the color of each pixel and each of them is 8-bit. The leftmost bit of each byte contains the highest value, and the right one contains the lowest value. Therefore, any change in the rightmost byte will only cause a minimal change in a byte value, and the color as well. 2-3-3 method is adopted to replace the pixels as encrypted data. It is used because it is in coordination with the program’s fluency. 2-3-3 is obtained so that 1 pixel will contain 1 byte of encrypted data. For R, the last two bit will be replaced by encrypted data. For G and B, the last 3 bit will be replaced by encrypted data. If the Bitmap size is larger than the encrypted data, random data will be replaced into the remaining pixels.\r 4. Conclusion \r “CryptoDefender” is user-friendly and efficient way to protect important and confidential digital files on most personal computers. This software will help to change the user’s habit in securing their information as to avoid data leakage even when they are accidentally lost.
MTU值與網路效率的關係
中文摘要:\r 本研究旨在探討,在TCP/IP 協定之下,最大網路傳輸效率之MTU\r (Maximum Transmission Unit,最大傳輸單位)值。根據IEEE 所公\r 佈Ethernet 之標準,經實地模擬實驗,本研究之結論如下:(1)在\r 單純兩台電腦直接串接時,由於幾乎無任何干擾與封包的碰撞,可設\r 定之MTU 最大值以1500bytes 為最佳;(2)但在模擬真實的大型廣域\r 網路時,由於碰撞增加及雜訊增多,經模擬實驗顯示,MTU 值為\r 1500bytes 時無法在資料傳送、接收及重組時取得平衡,最佳之MTU\r 值落於500 到600bytes 之間,進一步研究顯示MTU 值設在500 到\r 600bytes 時可提升傳輸效率約50%。同時,本研究亦討論將此機制應\r 用於未來新網路標準之可行性及其必要性。Abstract:\r The main purpose of this research is to explore the best network\r transmission efficiency's Maximum Transmission Unit under TCP/IP\r protocol. According to the Ethernet's standard of IEEE and simulated\r experiments, the outcome of this research are :( 1) When connecting two\r computers serially, there is almost no interference and impact of packets,\r the best MTU that we can set up is 1500bytes ;( 2)When simulating the\r truly wide area network, interference and impact are rising. The result of\r this simulates experiment shows that when MTU is at 1500bytes, it's\r unable to keep balance when sending, receiving and re-composing. The\r best new MTU is between 500bytes and 600bytes. And when MTU is\r between 500bytes and 600bytes, the network transmission efficiency can\r be promoted about 50% higher. At the same time, the research is also\r discussing the feasibility and necessity of applying it to the standard of\r the future network.
Equtatetor-新一代智慧型數學處理器
此研究的目的是要設計出一套完整編輯顯現數學式、加以計算,並求出解的一套方法與成品。而這項工作的執行者,在此稱之Equatetor 。一般的數學式子,若要計算的話,普通的計算機是不足夠的。原因是它們沒有辦法表現出數學式的「原貌」,例如分號、指數、函數、根號等數學符號混在一起時的情況。於是,我便擬定了一個研究,希望設計出一套更方便且實用的方法。換句話說,我要設計出一個功能強大的工程計算機程式。其中,自然牽扯到數學式子的顯現方式(以MathML 實現),以及計算機科學的演算法及資料結構。我主要的目的有四:(1) 顯示數學式(2) 方便編輯數學式(3) 計算數學式(4) 處理可以以不同形式輸出解答的計算(如輸出分數、根號、函數解等)。研究結果中,成功地運用XML 中的MathML 與二分逼近分數等演算法及若干資料結構,達到了以下實用的幾點:(1) 結構化的數學式編輯(2) 完整地顯示數學式(3) 正確運算並輸出運算式的答案(4) 提供一般數學形式之解(非小數之解);The object of this study is to design a method and processor which is able to edit, display a mathematical expression representing a number, calculate and output the answer. The executor of this task is called Equatetor. Normal calculators are not adequate for this kind of task. The main reason is that they can’t reveal the original expression, such as fractions, radicals, exponents or mathematic functions. Therefore, a simple and convenient method is needed. To perform the possible way of handling those tasks, a computer program has been written. Several techniques were used, such as MathML, computing algorithms, data structures, and so on. Following are main purposes: (1) Displaying mathematical expressions. (2) Editing mathematical expressions simply. (3) Calculating mathematical expressions. (4) Outputting the answers(in different expressions). And the achievements:(1) Structured methods of editing of mathematical expressions. (2) Displaying mathematical expressions completely. (3) Calculating mathematical expressions precisely. (4) Offering answers in different expressions.
Digital Viedo Compression Enhancement With Reduced Psychovisual Redundancy
Video compression is indispensable to web streaming and memory storage.Most video\r compression technology has difficulty to achieve high quality video at lower bit\r rates.Apparently,limited transmission bandwidth and network resources often degrade\r video signals.Thus the goal of my research was to enhance video degrade video\r signals.Thus the goal of my research was to enhance video compression performance and\r to improve visual quality.It is hypothesized that the reduction in neighboring pixels\r coding,and humans perceptual mechanisms(psychovisual)redundancy could produce a\r low-complexity geometry streams for animated visual objects.A set of algorithms is\r developed to parse bidirectional interpolation pixels into their characteristic cells,which\r vary in spectral energy and wavelength.The bits contained in these cells are vectorized and\r transformed recursively to identify lower correlations among vector arrarys for blocks\r filtering.DCT function calculates energy ratios between high spatial frequency and low\r spatial frequency,to devote most of the highest spatial frequency bits with the calculated\r energy ratios.A variable quantization method is used to measure the sensitivity of colors\r and its intensity ratios to restore any missing high spatial frequency pixels.presnted in\r mathematical intrinsic.This approach leads to the ability to compress video data that\r normally require a large amount of memory to store and high bandwidth to\r transmit,Results form the enhanced video compression experiment have attained\r 0.1bpp(256kbps,25fps)without noticeable effects comparable to the video compression\r technique that achieved 0.5bpp(1.5Mbps,25fps)in use today.
The Use of Simulated Annealing in Predicting Solar Flare Activity
A program based on the simulated annealing (SA) algorithm was developed to allow for a longer-term prediction of the occurrence of solar flares, thus reducing the risks they may pose to astronauts, satellites, and ultimately the planet Earth. Sunspot data such as the solar cycle, the appearance of sunspots, the sun's magnetic field, the occurrence of solar flares and other factors that concern the sun were considered in the development of the algorithm. The program, coded in C++, included providing for an initial random state that pertained to the sun's state at a specified time. A neighborhood function was designed based on how sunspots are formed and how they disappear, and the probability function was designed using previous solar cycles to show relationships between the number of sunspots and the time it takes for the sun to reach solar maxima. Finally, the cooling function was designed as a representation of the time. Recorded sunspot counts obtained from the US National Geophysical Data Center (NGDC) during the solar cycle 22 from 1986 to 1996 was used as test data. The output was compared to the actual recorded solar events or the period. The program was found to be 66.7% accurate in predicting solar flares when compared on a smoothed trendline, while it exhibited a 50.5% accuracy when comparing day-to-day data. Since solar flare acitivty is predicted in terms of the trend of activity and intensity, improving daily data accuracy is superfluous. Smoothed trendline prediction accuracy may however be improved by altering the importance of each factor in predicting solar flare activity and by devising a different sunspot classification scheme for intensity and activity.