Matrix Multiplication (Square of a Matrix) using Threads in JAVA

This program will take a text file as a command line argument. The text file will have the first row indicating the total number of rows and columns which will be equal as this program is programmed to read a square matrix from a file and calculate its square using threads.

Content of the text file to be given as an argument

0 1 0 7 5 3 1 0 1 0 7 5 3 1
2 0 0 3 2 2 2 3 0 2 9 0 2 3
2 1 1 2 2 2 4 0 0 2 4 3 3 5
3 0 2 9 0 2 6 1 2 3 4 5 6 7
2 0 0 3 2 2 2 3 0 2 9 0 2 3
2 1 1 2 2 2 4 0 0 2 4 3 3 5
3 0 2 9 0 2 6 1 2 3 4 5 6 7
0 1 0 7 5 3 1 2 0 0 3 2 2 2
3 0 2 9 0 2 3 2 1 1 2 2 2 4
0 0 2 4 3 3 5 3 0 2 9 0 2 6
1 2 3 4 5 6 7 0 1 0 7 5 3 1
2 0 0 3 2 2 2 3 0 2 9 0 2 3
2 1 1 2 2 2 4 0 0 2 4 3 3 5
3 0 2 9 0 2 6 1 2 3 4 5 6 7

The first row indicates the total number of rows and columns, in this case, rows=cloumns=14.
And the next rows will be the actual matrix which we want to multiply with itself. The program will calculate the square of the matrix written in your file.

import java.util.*;

class MMT…

Simpletron Complete Program in C [Solved]

The Simpletron runs programs written in the only language it directly understands that is, Simpletron Machine Language, or SML for short. All information in the Simpletron is handled in terms of words. A word is a signed four-digit decimal number such as +1009 +1010 +2009 +3110 and so on. The Simpletron is equipped with a 100- word memory, and these words are referenced by their location numbers 00, 01, …, 99. Before running an SML program, we must load or place the program into memory or the array of the program considered it as the RAM of the computer. The first instruction of every SML program is always placed in location 00. 

Each instruction written in SML occupies one word of the Simpletron’s memory, so instructions are four-digit decimal numbers. Each location in the Simpletron’s memory may contain either an instruction, a data value used by a program or an unused (and hence undefined) area of memory.

For more details you can read the section 7.27 Building your own computer of De…

11 Things that can Ruin Your Blog || You Should Avoid

The competition in blogging is increasing day by day and to rank better on SERP (Search Engine Result Page) many bloggers find quick ways.  For example, they make spammy backlinks, they just copy others content rewrite it by using tools to grow faster but Search Engines hate these techniques to grow faster.

Google sometimes penalize your blog and sometimes even banned you from getting the approval of Adsense. And if you get banned you have to start your struggle again from zero or you just left blogging.

In this blog, I will cover each and everything that can ruin your blog or the things you should avoid.
1. Vain Backlinks:Many new bloggers consider greater the number of backlinks means more ranking and they start making backlinks even on spammy websites.  But remember after the new updates of Google, blogs with fewer backlinks are getting ranking over the blogs with a higher number of backlinks.

I have searched for one keyword by selecting the country India. You can see the result that f…

5 Steps to Write an Efficient Blog

When it comes to blogging, every newbie has tons of questions in mind i.e how to write an effective blog? How to grab audience attention? How to create backlinks and rank on Google? etc.

A lot of time of beginners is spent on searching such type of content on the internet. To be honest, blogging is just like swimming. If you want to learn swimming, every expert around you can tell how to get into the water and how you can survive by following the instructions but you cannot become expert to it by just having familiar to the rules, you have to dive into the water to get experience. These experiences will make you to get familiar to the obstacles and to improve your skills, same applies in case of blogging.

Following some simple and important principles like selecting a topic and targeted audience, you have to write high-quality related content in order to get the targeted result. Besides the high-quality content, well-structured presentation of content is also an important ingredient to …

6 Ways to decrease Bounce Rate of your Blog

Whenever a user visits your blog and left immediately your bounce rate increases. Google calculate it before giving ranking to any web page to ensure that it is ranking best content for their users.

Bounce rate tells Google about the quality of any page. If a user left any page within seconds Google considers it in a way that your page didn't have good content for the users so that a user left it.

When the Google records the same attitude from many users that the users just left the page within seconds without reading it, Google de-rank the page.

If your blog has bounce rate in a percentage ranging from 26 to 40 then its excellent, 41 to 55 is roughly average, 56 to 70 is higher than average and if you have bounce rate greater than 70 then it's disappointing. You have to follow some techniques to decrease it.

In this blog, you will get everything about how you can decrease your bounce rate.

If you follow some techniques you can decrease your bounce rate and your ranking will automa…

How to add Alt Text to Blogger Images [Complete Guide]

Adding alt text to images in Blogger blog post is very good idea. Many bloggers miss this step by considering it unimportant and focus on making backlinks but this is an important factor of On-Page SEO.

After the new updates of Google, On-Page SEO is likely to have more worth than Off-Page SEO. Blogs are ranking well even with zero backlinks but having good On-Page.

In this article, you will get the complete idea of alt text and how to use it for better ranking and the different ways to add alt text to images in Blogger.

Search engines consider the article with more images a good one and give better ranking than those articles which don't have images in them.

Everyone knows this quote "A Picture is worth a 1000 words." So using more relative images in a blog post is good.

Read: How to add Social Media Sharing Buttons to Blogger

As you know search engine just read HTML and they don't even understand what it is about and what it contains. Same in case of images. Search engin…

How to add Disqus Comment Box to Blogger Blog

To increase interactivity with your visitors or to increase comment ratio you can use Disqus comment box in your Blogger Blog. Disqus comment box permit user to use images in their comments or user can use the code or can bold or italicize their important comment text which is not available in Blogger's comment box.

To add Disqus Comment Box to your Blogger Blog, there are some steps to follow

1. Go to and click on Get Started button.
2. Signup here. You can use your Facebook, Google or Twitter account to signup or you can go with your email address.
3. After completing registration, click on I want to install Disqus on my site.
4. Add your information and click on Create Site.
5. After creating site successfully, choose your plan. I'm choosing basic because it is free.
6. Now choose your platform like Blogger. Because you want Disqus on Blogger but you can also use it on any platform such as WordPress, Tumbler etc.
7. Now click on the Add to my Blogger site.
8. Select your …