Archive for category CSE
Character Frequency Analysis of Bosnian + Source + Report
Posted by Ajith Srikukan in CSE, for everyone, Projects on November 9, 2010
This post analyzes Bosnian language character frequency.
[Attachments : PDF report + Source code of Bosnian Language Frequency Analyzer]
About Bosnian
Bosnia and Herzegovina are the countries using Bosnian as their official language and more than 2.2 million people speak this language all around the world.
It has 5 vowels characters like English language and 25 consonants, altogether 30 characters.
Vowels: i , e , a , o , u
Consonants: b , c , č , ć , d , dž , đ , f , g , h , j , k , l , lj , m , n , nj , p , r , s , š , t , v , z , ž
In this language there are some characters represented by combining 2 characters, such as ‘dž’ by combining ‘d’ and ‘ž’ where ‘d’ and ‘ž’ have their own definition, at the same time character ‘dž’ also has its own definition like other characters.
Character Frequency Analysis
| Character | Count | % | Character | Count | % | |
| a | 3928 | 11.57064 | a | 3928 | 11.57064 | |
| b | 453 | 1.334394 | i | 3684 | 10.85189 | |
| c | 335 | 0.986803 | o | 3068 | 9.037352 | |
| č | 376 | 1.107576 | e | 2904 | 8.554259 | |
| ć | 209 | 0.615647 | n | 1960 | 5.773536 | |
| d | 977 | 2.877931 | j | 1933 | 5.694003 | |
| dž | 25 | 0.073642 | s | 1856 | 5.467185 | |
| đ | 36 | 0.106045 | k | 1651 | 4.86332 | |
| e | 2904 | 8.554259 | r | 1571 | 4.627666 | |
| f | 90 | 0.265111 | t | 1356 | 3.994344 | |
| g | 494 | 1.455167 | u | 1337 | 3.938376 | |
| h | 247 | 0.727583 | v | 1239 | 3.649699 | |
| i | 3684 | 10.85189 | m | 1020 | 3.004595 | |
| j | 1933 | 5.694003 | d | 977 | 2.877931 | |
| k | 1651 | 4.86332 | l | 878 | 2.586309 | |
| l | 878 | 2.586309 | p | 736 | 2.168022 | |
| lj | 148 | 0.435961 | z | 686 | 2.020738 | |
| m | 1020 | 3.004595 | g | 494 | 1.455167 | |
| n | 1960 | 5.773536 | b | 453 | 1.334394 | |
| nj | 267 | 0.786497 | č | 376 | 1.107576 | |
| o | 3068 | 9.037352 | c | 335 | 0.986803 | |
| p | 736 | 2.168022 | š | 325 | 0.957347 | |
| r | 1571 | 4.627666 | nj | 267 | 0.786497 | |
| s | 1856 | 5.467185 | h | 247 | 0.727583 | |
| š | 325 | 0.957347 | ć | 209 | 0.615647 | |
| t | 1356 | 3.994344 | ž | 159 | 0.468363 | |
| u | 1337 | 3.938376 | lj | 148 | 0.435961 | |
| v | 1239 | 3.649699 | f | 90 | 0.265111 | |
| z | 686 | 2.020738 | đ | 36 | 0.106045 | |
| ž | 159 | 0.468363 | dž | 25 | 0.073642 |
Table 1: Character frequency output Table 2 : Character frequency sorted output
The first table shows the character frequency analysis of Bosnian language produced by the program. The second table shows the character frequency analysis of Bosnian language that sorted from highest to lowest value by analyzing frequency of each character.
Figure 1 Character frequency analysis of Bosnian – bar chart – count vs. characters
If we analyze the 2nd table we can say that the mostly used characters out of 30 are a, e, i, o. This shows that the characters used to construct words are taken from vowels. And character ‘u’ has lower usage compare to some consonants, ‘n’, ‘j’, ’s’, ‘k’, ‘r’. Like most of the other language including English this language uses vowel characters more frequently.
If we consider the first 19 places we can say that the characters filled first 19 places have the same character symbol like English language and the most special characters of Bosnian language got lower places.
Figure 2 Character frequency analysis of Bosnian – pie chart
The above pie chart represents the overall character distribution of Bosnian Language. In this chart all characters are arranged in ascending order based on percentage of character frequency.
If we count the percentage of all characters we can conclude that, this language uses 44 % vowel characters and the remaining 56 % are consonants. This shows that 17 % character set (vowels) takes 44 % of space when we construct words/sentences using this language.
About Source code – I used NetBeans to develop the program using Java technology. Also it contains some sample Bosnian text files that used to analyze the character frequency of Bosnian using this program.
Essential reading – The Seven Habits of Highly Effective People
Posted by Ajith Srikukan in amazing, Book, CSE, for everyone on September 26, 2010
I love reading books and one of my goal is at least I want to read a book without missing any chapters, but I never achieved it. I always borrow books from library, buy book from book shop but never read the whole book, my goal. Recently (one year
back) I bought a book called “The Seven Habits of Highly Effective People”. Lot of people may heard about this book and some of you may have read this book, if it so skip reading and move to other work rather than investing your valuable time here.
[Skip - Small story behind the purchase
There are two reasons why did I go for this book,
- I got a worth of Rs.2000 voucher from our department as we got the second price in the formula CSE competition. And it is not directly convertible to money, invest on books was the only way to spend it.
- “Each person on this planet must read this book before they leave the planet” said by one of my friend, so I interested on this book not to read but to get to know the matter behind the above statement.]
Up to now I have read only two pages (first) and surprised with the contents it has, the author provides some example of human life which shows the actual picture of our mind voice…
Some of examples extracted form the book without permission of the author – Stephen R. Covey,
“I’ve set and met my career goals and I’m having tremendous professional success. But it’s cost me my personal and family life. I don’t know my wife and children any more. I’m not even sure I know myself and what’s really important to me. I’ve had to ask myself — is it worth it?”
“There’s so much to do. And there’s never enough time. I feel pressured and hassled all day, every day and seven days a week. I’ve attended time management seminars and I’ve tried half a dozen different planning systems. They’ve helped some, but I still don’t feel I’m living the happy, productive, peaceful life I want to live.”
“I’m busy — really busy. But sometimes I wonder if what I’m doing will make a difference. I’d really like to think there was meaning and purpose in my life, that somehow things were different because I have been here.”
“I see my friends or colleagues achieve some degree of greatness or receive some recognition, and I smile and congratulate them enthusiastically. But inside, I’m eating my heart out. Why do I feel this way?”
“I have a forceful personality. I know, in almost any interaction, I can control the outcome. Most of the time, I can even do it by influencing others to come up with the solution I want. I think through each situation and i really feel the ideas I come up with are usually the best for everyone. But I feel uneasy. I always wonder what other people really think of me and my ideas.”
Are you surprised after reading above statements? Yes
. . . No – Ok never mind
I believe that one of the reader who is reading my post until last word may like this book. If it so give a try to read this book, else at least have a look, it may inspire you to read it.
Happy Reading :) .
6 months at IFS as an intern . . .
Posted by Ajith Srikukan in CSE, for everyone, Sri Lanka on September 18, 2010
During the last 6 months I underwent a training program at IFS. That was one of the awesome periods I never had during my university life, 6 month continues entertainment. You may think the works I carried out there was awesome but it’s not the case. The entertainment I had while working at IFS as an intern was the awesome time I’m talking here, Yea it’s all about the fun we had at IFS. Usually the people works in a company mainly in a software company repeat the same pattern of activity even if they realized, it is ridiculous.
One of the tremendous, unforgettable and fabulous event during the training period was a trip to Amaya Lake. The beauty of the trip was not only taking the rest at Amaya Lake but also have a fun time, yaa they attached the New Year games with this trip. The second big event we had at IFS was annual sports festival. Those are the two big fabulous events we had and some other enjoyable moments.
This slideshow requires JavaScript.
IFS is not only a place to apply our book knowledge in to real world problem to get a best practice but also helps to improve out sports activities. It means it provides mental and physical strengths that make us as a perfect man. Swimming and badminton are the two main activities I have after I finished my work. Can you believe that I learnt swimming after I joined with IFS, yep this is one of my big achievement at IFS.
Thanks IFS . . .
New way to get first class
Posted by Ajith Srikukan in CSE, for everyone, Fun on July 20, 2010
I’m almost in the end of my training program and on the way to my final year of my degree program. Last week, at our training place we had a hot discussion about our Grade Point Average(GPA) and how can we raise our GPA in order to get first class (need GPA >= 3.7).
Everyone started to calculate their GPA, after a rocked mathematical calculation we found required GPA and the GPA we have to score in the final year to get an over roll GPA 3.7. Some of my friends said, they need 3.9, 4.1 and ect. Now my turn to reveal the ultimate required GPA. It’s more than 4.20001
(didn’t like to damage my image
by saying >5.0) where the maximum reachable GPA is 4.2. Everyone laugh but I never worry because Impossible is Nothing. While everyone gets maximum GPA of 4.2, I want to put a top margin by achieving a highest GPA of 5.2, forever – may be Guinness World Records .
Like my previous GSOC failure research, I did a research on this issue and found a formula . . .
formula –> required GPA disproportional to credits —> GPA ∝ 1/credits :)
According o the formula the research results are,
Increase the GPA – very very difficult task
- Give some donation to University (please note that it’s not BLACK MONEY).
- Create a fake student(not FACEBOOK) account and add them together.
- Introduce our pals GPA calculator – 1000% accurate :(
Increase the credits – easy task
- Use my monkey brain and steel the credit from others.
- Enroll all the available subjects even agriculture, law and BOOK subjects.
- Use my credit card to add more credit to my student account.
Headache forced me to post this post
– wasted 1 hour
MPTT on WordPress – Programming Project – Plug-in
Posted by Ajith Srikukan in CSE, Projects, WordPress on June 6, 2010
During my third year I developed a plug-in that applies the MPTT technique to WordPress CMS (it is a GSoC 2009 idea from WordPress - http://codex.WordPress.org/GSoC2009) . I did it as a project for a subject called program project. If we want to add more functionalities to WordPress then it can be done in two ways, implement the code inside the WordPress core or add the implementation as a plug-in. It was a hard thing to deal with WordPress core so I developed it as a plug-in by dividing the project into two parts.
MPTT technique is a great algorithm . . . to get more details refer this site
1. Applying the MPPTT technique to WordPress database – here i added new fields lft and rgt to some of the WordPress database table – wp_post, wp_comment. By rearranging the database i can convert the database into tree structure(MPTT) and this tree structure will be useful in the 2nd step.
2. Showing the contents of WordPress using MPTT – The best way to handle this is to modify the WordPress core but dealing with wordpress core is very hard so i planned to provide a new template that apply the MPTT technique and display the contents of the blog. This new template is not the perfect one but it shows most of the contents(posts and comments) correctly using MPTT technique.
To check it visit http://code.google.com/p/mptt-WordPress-ajith/ or http://sourceforge.net/projects/wordpressmptt/
This slideshow requires JavaScript.
some of the progress documents(RUP) i used to develop the plug-in . . .
Sponsorships management System
Posted by Ajith Srikukan in CSE, Database, Projects, UoM on December 20, 2009
This post tells about a project ……
This is a small project about handling database through MySQL. This project is announced by our department under the module of CS 3040 – database systems. As a group we completed this project successfully.
To check out our project visit http://cs3040.fh50.com/
And feel free to give feedback ..
The scenario is,
There are various events that are organized annually by the CSE Department such as the Formulae CSE, the Hit the Grounds and the AGM. You are required to design a database that keeps track of the sponsorships of these events.
A particular event can have different types of sponsorships. A particular sponsorship for a given event will have a predefined number of sponsorships. For example in the event Hit the Grounds ’09, there will be Platinum, Gold, Silver and Bronze sponsorships, with 1 Gold, 2 Silver and many Bronze sponsors. Each type of sponsorship will have different kinds of privileges such as the number of banners given. Companies can opt to give any number of sponsorships for a single event.
Event coordinators should be able to register with the system and create new events. They should be able to a brief description about the event and add sponsorship details, which will be displayed along with the details of the event on the website. They should be able to add/delete/modify the sponsorship details for the events. All events will have a closing date for the call of sponsorships. Companies should be able to register through the system as potential sponsors and view event details and give sponsorships.
Both event coordinators and companies should be able to
1. Search for upcoming events
2. Search for past events
3. Search for events that fall during a given timeframe
4. Search for the type of sponsorships of a selected event
5. Search for the vacant sponsorships of a selected event
6. Search for the privileges of a given type of sponsorship of a selected event
Companies should be able to
1. Search for events sponsored by a their company
2. Search for events that fall within a specified time frame sponsored by their company
Event coordinators should be able to
1. Search and view the list of sponsors of a set of events, grouped according to the name of the sponsor
2. Search and view the list of sponsors of a set of events, for a given time frame, grouped according to the name of the sponsor.
You are encouraged to add any additional functionality that you think will be useful.
have a look ….









