[Algorithm] Minmax algorithm (alpha-beta pruning)

In the process of understanding minmax algorithm (pruning alpha – beta) consulted his numerous articles and feel of pyrites article'S BLOG relatively straightforward and detailed. We thank the author of the article and the author for permission to be quoted, refer to the content of your posts. At a game in which two people turn to water […]

[Trick] Created mathematical formulas in LibreOffice

For those who use Linux in general new and Ubuntu in particular, they may be in trouble with the compilation of mathematical formulas in LibreOffice. This alone recognized, though not quite as far-fetched if we find out a little and is even easier to see the editor on M $ Word. In Writer you can find this function in the menu […]

[Assembly] Combined with high-level language Assembly

Assembly can be combined with the high-level languages ​​such as Pascal, C / C , … when writing programs, In this article I just mentioned combined with Pascal Assembly When combined with Pascal Assembly have 2 from: inserted directly into the asm file or write separate files. 1. Write the 1 file. Inserting asm syntax: Example: Count 2 integer a, b. […]

[Assembly] Guide assembly run by TASM and emu8086

1. Run by TASM Assembly First you download the file to decompress TASM.zip somewhere you want. Here his right to Desktop, you can drive to the C or 1 Other drives. Unzip you will have 1 folder in a file that is available welcom.asm and BIN directory contains the translation. Now we will run welcom.asm, other files when you write […]

[Assembly]Fatal: Bad object file record in hello.asm near module file offset 0x00000000

When we execute the TASM hello.asm success and create 1 file hello.obj. But when associated with the command tlink hello.asm got this error message. This error occurs does not understand why his =)), just know that if this error may be that it does not allow links * .asm file. And how we used to overcome the * .obj file instead of the * .asm. In this TH […]

[Trick] Set the default path for cmd

Normally when you turn up the cmd it will have the default path is C: drive or directory on your C drive. But if you regularly work with 1 some other folder (VD as I did in the E drive to run ASM) should be set to its default path is your workplace. Step 1: Open Run regedit to open up and HKEY_CURRENT_USERSoftwareMicrosoftCommand Processor. […]

[C / C ] The simulation algorithm by changing the base figure

About algorithm change the number you can see on the net, however, the program would be the change of system 10 to Us 2, 8, 16 and in accordance with the format we still do. Perform on dev-C Implementation in Linux terminal Read more: Principles to switch between the muscles of the Displays system 2, Contacts 8, Contacts 16 of decimal

[codeforces] Round #204 (Div. 2) The. Jeff and Digits

Threads: http://codeforces.com/contest/352/problem/A time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Jeff’s got n cards, each card contains either digit 0, or digit 5. Jeff can choose several cards and put them in a line so that he gets some number. What is the largest possible number divisible by 90 Jeff can make from the cards he’s got? Jeff must make the number without leading […]

[Algorithm] Calculate the square root 2

In a technical interview at the company XXX, a programmer "senior" responsible interview Teo Teo ask a question: "Please write a C program calculate square roots 2 the integer x "Teo chuckled and thought to myself" Company Vietnam leading technology what so ask a question easy. It is not some new guy programming!"And in the blink Teo […]

[C / C ] Click in Dev-C – Mouse event in Dev-C

In this article I will walk on some mouse function and event in graphic mode Dev-C ++. void getmouseclick( int kind, int& x, int& and ); -> obtain the coordinates x,and ( in pixels) where can click bool ismouseclick( int kind ); -> returns true if they happen to click int mousex( ); -> retrieve the mouse coordinates in the x int mousey( ); -> obtain coordinates […]