2048-NN

2048-NN

Use your arrow keys or swipes to move the tiles. When two tiles with the same number touch, they merge into one!

You can play 2048 by yourself or with the help of NN. You can get some hints from deep learning model by clicking Think button. This trained model can achieve 2048+ in > 94%, 4096+ in > 78% and 8192+ in > 34% of the games.


2048 References

Friends😍

Music Chords with Mathematics

Finding Consonance

How can we distinguish euphony and cacophony? The quality of sound is determined by frequency, one of the main characteristics regarding a singular tone. A chord containing several tones can be harmonious and discordant depending on its frequency set. Tuning and temperament produce the desired pitch regarding a given pitch and modify that tuning to lessen dissonance.

There is a simple and easy way to determine whether two tones are compatible. Consonance happens when there is little interference engendered by pulsations of sound waves. And it occurs only when the ratio between the frequencies of the two tones, so-called distance, is numerically simple. A distance between two pitches can be mathematically described as the ratio between the frequency of the first pitch and the second frequency.

2
3

Let's delve into an example of two pitches, 260 Hz and 390 Hz above. We can calculate the distance as 2:3, the consonant interval named the fifth (from C to G). The same process can reduce various frequency ratios. You can drag and modify each frequency value and check out the simplest integer ratio of two pitches. Clicking the fraction lets you hear a custom-made chord of two pitches.

Musical Temperament (12 tones / 1 octave)

Temperament is especially crucial for keyboard instruments, which allow players to play only the pitches assigned to the various keys. Thereby, altering a single note's pitch can spoil the whole performance. Different musical temperament methods like just intonation and meantone temperament have been developed to play reasonably well in all of the keys. We'll identify how those methods create 12 tones in 1 octave (12-TET) and whether their melodies are plausible.

From articles in Wikipedia,

  • Pythagorean tuning is a system of musical tuning in which the frequency ratios of all intervals are based on the ratio 3:2.
  • Just intonation or pure intonation is the tuning of musical intervals as whole number ratios (such as 3:2 or 4:3) of frequencies.
  • Equal temperament divides the octave into 12 parts, all of which are equal on a logarithmic scale, with a ratio equal to the 12th root of 2.

Don't hesitate to click on each entry of the table below and check out how it sounds. Listen to random music composed on each temperament. Our aural sense would find that the most familiar is the equal temperament, now commonly used in piano tuning.

260 Hz P1 m2 M2 m3 M3 P4 TT P5 m6 M6 m7 M7 P8
Pythagorean Tuning
30
20
28
35
32
23
25
33
34
26
22
31
36
29
31
21
27
34
33
24
24
32
35
27
21
30
Just Intonation
1
1
12
11
9
8
6
5
5
4
4
3
7
5
3
2
8
5
5
3
7
4
11
6
2
1
Equal Temperament 20⁄12 21⁄12 22⁄12 23⁄12 24⁄12 25⁄12 26⁄12 27⁄12 28⁄12 29⁄12 210⁄12 211⁄12 212⁄12

Nim Game against Computer

From an article in Wikipedia,

In another game which is commonly known as Nim (but is better called the subtraction game), an upper bound is imposed on the number of objects that can be removed in a turn. Instead of removing arbitrarily many objects, a player can only remove 1 or 2 or … or k at a time. The player taking the last object wins.

How to Play

In this game, we’ll slightly change the rule to get a certain number of stones. Now you can only grab as many stones as the number written inside colored circles.

  1. Drag and highlight the stones that you would like to remove.
  2. Click the Take button.
  3. Win the game against the computer.

Dame Dane

From an article in Kapwing Resources,

Deepfakes are finding their way into meme culture more than ever before and one clip is leading the charge. The “Dame Dane” meme features a Japanese song from the popular video game series Yakuza.

I will apply First Order Modeling method, which allows creating deep fakes in a few minutes.

First Order Motion Model for Image Animation in NeurIPS 2019

For further information, please refer to the video below and visit the website of the paper.

Scholar Resume

Scholar Resume

Axie Infinity is a blockchain-based P2E game. Players purchase NFTs of cute monsters called Axies and then pit them against each other in battles. They can earn SLP tokens during gameplay and trade them for money at an exchange.

The Axie scholarship program lets scholars willing to play the game possess one or more decks to play Axie infinity. Scholarship managers buy or provide decks of 3 axies, enabling the scholar to play battles. The scholar’s SLP revenue follows a 50/50 or 60/40 payout ratio depending on the scholars’ performance.

We have launched a single page application “Scholar Resume“ for axie scholars to apply for a specific scholarship, providing achievement information, including their ranks, MMR, and earned SLP history via their playing accounts.

The Water Jug Riddle

The Water Jug Riddle


Detective John McClane must measure out exactly 4 gallons of water and place the resulting weight on a scale to disable a bomb. His tools are yours: a 3-gallon and a 5-gallon jug—and a single fountain. McClane did it in less than 5 minutes. Can you also do it in time and provide a generalized solution for arbitrary gallons of both jugs?

Jug 1

Jug 2

gal  

5

gal  

3

Every step can be visualized as billiard moves in the coordinate system on a triangular lattice. The above hexagonal plot gives two solutions to the 5-gallon and 3-gallon puzzle. Each point on the boundary denotes combinations achievable with the jugs. Starting at two vertices (5, 0) and (0, 3), traces of the blue points show pourable transitions. We have measured 4 gallons in 6 and 7 steps concerning the starting points. Might it be possible to get a prime gallon of water from coprime gallon jugs (e.g., to yield 7 gallons from a 9-gallon jug and 15-gallon jug)?

Paper Review: Multi-Aspect Streaming Tensor Completion

  • This article is all about a recently-viewed paper, Multi-Aspect Streaming Tensor Completion in proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD ‘17).
    • #tensor_completion, #MAST, #dynamic_tensor_decomposition,
      #online_algorithm, #streaming_data, #CP_factorization
  • Abstract
    • Completion of incremental tensors without sacrificing effectiveness remains a challenging task due to the uncertainty of tensor mode changes and complex data structure of multi-aspect streaming tensors. To bridge this gap, we propose a Multi-Aspect Streaming Tensor completion framework based on CANDECOMP/PARAFAC decomposition to track the subspace of general incremental tensors for completion.
  • Relevance to My Research
    • MAST is the 1st approach to online analysis that solved the multi-aspect streaming problem.
    • I’m also working on streaming tensor and trying to develop my method. You can see the progress of my research on GitHub.

More other topics on https://datalab.snu.ac.kr/seminar.