Archive for the ‘Laboratory’ Category

« Previous Entries

Listing vertices of a negat... - 0

ali • 22 August 2010 • Algorithms, Laboratory

Again, there’s something that seems be rare on the net, and that’s the problem of finding the ordered list of vertices of a negative-cycle in a directed or undirected graph[1]. Well, the Bellman-Ford algorithm already finds out that there’s a negative cycle, but how can we make it to also list the vertices of that [...]

Complement Operation on Aut... - 0

ali • 29 August 2009 • Laboratory

I wonder why nowhere on the net is found that mention the requirements of the complement operation on automata or precisely define this operation. In fact complement operation is only defined on deterministic automata. Applying it to NFAs will result to strange things. For example, consider the following automata: You might think that its complement [...]

Circuit for Log2... - 0

ali • 27 April 2009 • Digital Design, Laboratory

Today I took an exam for the logical circuits course. I didn’t write much good :( since there was no time for thinking! There was a problem stating: design a circuit to calculate the Log2(A) where A is an 8-bit value. Of course, I did wrong on the exam but now, here’s the answer…

Hex-Digiplay Circuit... - 0

ali • 06 March 2009 • Laboratory

Today I found an interesting topic which I used to do some practice for the Logical Circuits course. The idea is to design a simple circuit by logical gates for displaying a single hex digit. In other words, given a number 0<=d<16 written in binary form as ABCD, display its hex form using a few [...]

Free Java Maze Game: MayZ... - 6

ali • 04 February 2009 • Data Structure, Fun, Java, Laboratory

The famous maze game is the game that most people know it. That’s a complex puzzle that a passenger has to find a way from a beginning door through an exit. In this post, I introduce you my first Java application, a simple 2D maze game, which I’ve made it for the Data Structure course [...]

Free Huffman Compressor... - 0

ali • 28 January 2009 • Algorithms, C++, Laboratory

Certainly you have used some compressing tools before, such as WinRAR, WinZip or even the Windows compressor. There are many free algorithms that can do such compression. Also there are many other algorithms that perform more compression faster but they’re not free! Huffman is an entropy encoding algorithm used for lossless data compression. The term [...]

Free CRC-8 Checksum Calcula... - 2

ali • 22 January 2009 • Algorithms, Assembly, Laboratory

CRC calculation is a popular way for detecting accidental errors occurred to a message. These errors usually may occur during data transmissions over a network or while writing to a storage device or anywhere that datum is moved. I recently have coded a few lines in order to create a tiny program for CRC calculation. [...]