Posts

Showing posts with the label work

Android: Thuật toán Minimax

Image
Today I would like to write post by Vietnamese for better explanation about Mimimax algorithm - a simple AI algorithm and it's implementation. I re-post from  pyimlife.wordpress .  Mục tiêu: lập trình “máy” chơi trò Tic-Tac-Toe (thể loại game đối kháng chơi luân phiên tương tự trò cờ caro) với con người. 1 – Đầu vào: Một mảng 3×3 thể hiện các nước đi luân phiên của người chơi (X) và máy (O). Hình minh họa: Người chơi (X) chơi trước, máy (O) chơi sau. Kết thúc ván không bên nào điền được 3 ô thẳng hàng ngang, dọc hay đường chéo nên kết quả là hòa. 2 – Thuật toán của máy: Minimax là thuật toán đệ quy. Ở mỗi lượt chơi, máy dựa vào mảng đầu vào 3×3 để “duyệt vét cạn”: Thử lần lượt các nước đi có thể; Với mỗi phép thử nó tiếp tục gọi vòng đệ quy mới để thử hết các lựa chọn kế tiếp của người chơi; Với mỗi lựa chọn đó, lại tiếp tục phép thử với lượt của máy…; => lặp lại cho tới khi bàn cờ kết thúc (X thắng, hòa, O thắng). Sau khi thử hết các trường hợp, máy ...

Nhật Bản - Phần 2: Người Nhật văn minh...

Image
Tiếp nối những cảm nhận của tôi về xứ sở mặt trời mọc trong chuyến công tác đầu tiên tới đây. Meiji jingu~ Phần 2 – Người Nhật văn minh… Điều tôi ấn tượng nhất về con người ở đây là văn hóa xếp hàng – giống y hệt như mô tả trong các sách báo ở nhà mà tôi đã đọc. Họ xếp hàng mọi lúc mọi nơi: chờ xe bus: xếp hàng; chờ tàu điện ngầm: xếp hàng; chờ lên thang máy – xếp hàng; chờ thanh toán trong siêu thị - dĩ nhiên xếp hàng; thậm chí chờ đi vệ sinh – xếp hàng. Tôi hầu như không bao giờ thấy cảnh chen lấn xô đẩy, dù là trong khung giờ cao điểm lúc đi làm hay đi chơi. Văn hóa xếp hàng trong tiềm thức của họ đã đạt tới đỉnh cao. Bố mẹ dắt con xếp hàng ngoài trời nắng cạnh ga Ueno (Yamanote line) để đăng ký cái gì đó. Ở các địa điểm vui chơi đông đúc, việc xuất hiện hàng dài người xếp hàng ngay ngắn chờ tới lượt vào siêu thị tiện lợi combini (7eleven, family mart, lawson, etc.) mua đồ hay vào hàng quán mua thức ăn nhanh (kiểu như xiên thịt) là không hề hiếm. Lúc này nếu...

A suprisingly difficult interview

Image
Last Tuesday, I had a job interview at Hanoi office of G Corp. which is the leading E-sports development business. The headhunter contacted via Linkedin and invited me to join the first paper exam last month. After being qualified the 1st round, she set me up an interview with a senior engineer who has experienced company's work for years. We can easily communicate between Hanoi and HCM city, big thanks to Skype and Codebunk. Two hours in the meeting room flied so fast. From my perspective, I think that I didn't give my best short this time. I might be rejected. You may ask do I feel disappointed. Nope, not at all. On the contrary, the preparation time gave me an inspiration to write about the other aspect of interview. It is obviously amazing if someone passes those challenges, but what if somebody fails? In this post, I concentrate more on the bright side of failure. Not relevant at all. I am enjoying football at LG... First, interviews are a great opportunities to r...

It’s the Weekend! And I am still working.

Image
Despite today is Saturday, I am still doing my job at the company like a normal weekday. It is one of our company’s labor rules that the last Saturday of every month is working day. Taking free time, I do some searches on the Internet and summary the figures and various opinions about working on the weekend. Need to take some fresh air over a breath-taking view~ First, I am going to demonstrate some statistics of the estimated numbers of people have to spend their weekends on businesses. An article on forbes.com surveyed 1000 Americans and found that approximately 70% worked at least one weekend a month, with 63% saying that their employers expected them to put in time on average Saturday and Sunday. What a number. However, it does not surprise me at all. From my experience, when I was a Samsung engineer, I myself had to work on two Saturdays a month, same number in Viettel’s offer letter. Now, LG requires me to be at the company one Saturday a month. Generally, we are ...