Determining The Complexity Of Algorithm (The Basic Part)

Hi readers, many students or even yourself talking about analysis algorithm is often regarded as a scary thing. My opinion about it is “yes.., you are right!” cos I’m also not really sure about it because I believe that analysis algorithm is a large thing and needs a high knowledge of math to understand it, and the bad new is I hate talk about mathematics  :-) . However, through this article I’ll share you about the basics theory and pure examples of analyzing algorithm based on what I know about it with the hope at least it can help beginners who are trying to analysis algorithm. Finally, this is not as a perfection, there are lots of rooms for improvement or better articles about this stuff. And I state this is just a sharing! :-)
Read more »

All Stuff of Algorithm , ,

Creating Simple Shoutbox Using PHP & Ajax by OOP Way

This tutorial will guide you step by step to create a simple shout box using PHP & Ajax with the hope you can create it for your own. Actually, there are lots of advanced shout boxes spread in internet that you can place in your page freely, but have you ever think how actually to create it? Well, this tutorial will show you the idea behind it! Read more »

All Stuff of Programming, OOP (Object Oriented Programming), PHP & MySQL , , , ,

Arithmetic Coding Algorithm and Implementation Issues

You’ve probably seen that there are a lots of articles or textbooks that talk about this algorithm detailed. Unfortunately, not all of them explain it clearly and sometimes hard to understand what it’s really talking about, since it just give a common basic theory without considering how actually to implement in the real world. However, there are still great stuff that I think is very good for any beginners who learn this algorithm. You can visit Eric Bodden, Dipperstein or Arturo Campos that explain this algorithm conceptually and followed by implementation issues and an easy to follow source code. Read more »

All Stuff of Algorithm, Data Compression , ,

Vignere Cipher Algorithm and Implementation in Java

Actually, this implementation is belong to my friend when we had a homework assignment in Cryptography class few months ago. And I hope he allowed me to publish this script in this page, since I forget to have permission to him,,.. ;-) . Well, this page will share you a simple encrypting algorithm implementation as a part of classic encryption technique, that’s Vignere Cipher. Vignere Cipher is easy to understand, because as its type, it doesn’t perform any bits operation otherwise only the characters manipulation. Read more »

All Stuff of Algorithm, All Stuff of Programming, C++ and Java, Cryptography , ,

Dictionary Based Algorithm (Lempel Ziv Welch)

Interested in data compression, I choose LZW algorithm as a lossless algorithm that represents the dictionary based algorithm that I compared to another lossless algorithms, Arithmetic Coding and Run-Length Encoding+Burrows-Wheeler Transform for my college’s final report few times ago. I interested to choose LZW since it’s as the improvement of LZ77 and LZW78 which all of them is based on dictionary. After doing some testings I got that LZW is effective for data text since believe or not in the data text there are much of repeated patters or redundancies that should be encoded with a single code, which means many patterns can be encode with only one code.  Read more »

All Stuff of Algorithm, Cryptography, Data Compression , , ,

Basic Technique of Creating Your Own PHP Syntax Highlighter

For my first “Hello World” in PHP, I was wondering what’s the real benefit of studying regular expression. It has been one of my stupid questions that I’ve realized while writing this article cos when I learn it in the class, I never found the real implementation of regex that enough useful for web development, so sometimes i frustrated to try to learn regex, I don’t really understand how to mix the meta characters to be a regex so that it can be used to handle a certain task. But, after few examples of regex that I’ve been used, I found that regex is something that very important to understand, since not all problems can be solved by a normal command without using regex. Read more »

All Stuff of Programming, C++ and Java, OOP (Object Oriented Programming), PHP & MySQL , , , ,

Part I – Java Basic For Beginners

After long time playing with procedural, I think it’s time to move to a new programming language that support OOP clearly. Yeah, that’s Java, even though in other language OOP also supported, but it isn’t as good as Java of course. Working in Java means working via object to solve problems. Through this article I’ll talk a brief basic of Java that should be understood by beginners who want to start learning Java programming. After finishing this article hopefully you would have a few basic about syntax, structure, variable, or function and finally can use them to write simple programs in Java, it is useful because when you are dealing with GUI programming, this basic knowledge is very required. Read more »

All Stuff of Programming, C++ and Java, OOP (Object Oriented Programming) , ,

Creating Simple Framework For MySQL Queries

Hi, this tutorial will show about creating a basic framework for common MySQL queries in which the framework is just a class with some methods that performs the queries. In other words, I just write a simple code as a simplification writing of common queries commands. This framework should be redistributable, reusable, reliable and easy to use (Oh, the sound is too excessive! :-) ). To do that we need to create an object (class) to perform such tasks. So, when we are dealing with queries like CRUD (Create, Read, Update, and Delete), we just need to create an instance of the class and simply call its methods, besides that we can also add some queries easily based on our need. Read more »

All Stuff of Programming, OOP (Object Oriented Programming), PHP & MySQL , , ,

Run-Length Encoding Algorithm and Implementation

Hi, I have few hours before go to the bed, I think writing an article is better than nothing to do. This article will share you about Run-Length Encoding (RLE) algorithm and its simple implementation completed with an easy to follow source code with the hope you can also do the same way to the other language you familiar. If you are beginner in data compression, learning the RLE algorithm is a good beginning to understand the concept about data compression because RLE is really simple and easy to implement so you don’t need do hard to learn it. However, there are few problems that should be considered when implement it and here we will look that problems and its solution. Read more »

All Stuff of Algorithm, Data Compression , , ,

Discussion Of Burrows-Wheeler Transform Algorithm

Insanity continues,..Oh no..I’m not insane….This is the bad joke for the first time, yeah because I have already know about BWT algorithm after read it from some resources, and now that I’m gonna to share it to you with the hope you can also share it to others based on your easier grasp, or at least you have something to publish in your own blog to improve your page rank, or just for enjoy :-) . Anyway, this article just as a sharing and discussion about BWT, not perfection. There are a lot of better articles about this algorithm out there. I found Michael’s O’Stuff or Dr Dobb’s Journal is a good article so far. Read more »

All Stuff of Algorithm, Data Compression , , , , ,