I need a matrix multiplication algorithm using loops.
Let i = row #;
Let j = column #;
outcome = A x B
So I would want something like:
The for loop order doesn't matter.
Hi Experts,
I just want to calculate working time and days between two days.
ex: (Start date - End Date) - (Week end days in period)
How do I change a given expression in infix notation to prefix and postfix notations using a stack?? Step by step?? What would be the state of the stack during the process??
lets say the ne...
Hello experts,
please tell me
1. what is difference between Linear and Non Linear Data Structures ?
Linear are - Array, Linked List, Stack, Queue
Non Linear are - Tree, Graph
2. In which...
Hi, I have a tricky question. I need an algorithm to calculate the inverse tangent (tan ^ -1) for a specific floating-point x (-inf < x < inf). It has to converge fast or at least there must b...
for graph type problems I've been using an adjacency matrix.
But now I'm dealing with an adjacency list type problem.
It seems to me that the most natural way to implement the list is to u...
Hi to All,
How can I send SMS message to a mobile phone from PC with GSM Mobile , my GSM Mobile is Sony Ericsson (W200i), please help me ASAP.
Thanks in advanced,
A.R. Rafiee
i want to sort a linked list which algorithm should be used and why such that sorting takes place with least complexity.
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You cant pass the value k to any function also.
Does anyone have Strassen's algorithm for matrix multiplication ? in C
I have a piece of cipher text, and I need to write a Java program to decrypt it, but I'm unsure how to. I know that you need to do a frequency analysis, and then cross reference with a diction...
I'm developing a client server application using Sockets in asp.net (c#). I've got the client and server already communicating. The communication protocal I use is simple, and is in this for...
I am trying to solve a problem involving a series of items I, that I want to reorder to a given final order F. The only valid reordering operation is the "flipping" of adjacent items. Thus the...
Hi
I'm wondering if you could give me a hand with an algorithm.
I need to write a algorithm for generating combinations from n number of sets (of integers).
I can write code that will...
I need to calculate number of payments given interest, beginning principle and payment amount. I've been looking all over the web and I can find plenty of formulas for calculting payment amoun...
Hey experts, I'm stuck and I need your help!
I've been working on some code for the last few months to identify and measure some basic shapes in imported .DXF drawings so I can price them w...
Hi, i have a 3000 word wordlist saved as a .txt file and I want to sort every word in it alphabetically and then write then in alphabetical order into a new .txt file.
I already know how to...
I am writing code to read in a text file and to encode it with huffman code using a min heap and priority queue. I have the file read in and stored in a Table and I can insert the Content of t...
What is the difference between NP,NP-HARD,NP-COMPLETE ?
please explain this with an example
I am trying to work with reflection and am trying to create a helper method for my unit tests to print out all the properties of an object. Some objects have nested collections - of type ILis...
anybody know anything about generating barcode checksums?
i'm trying to calculate the check sum for Code 128-B, which is Mod 103
this link:
http://www.code128barcodes.com/Code-128-ch...
I am confused about how the size of the data type vary based on different processors?
I found some thread discussing this topic already but I stil didn't quite understand about it.
I mak...
I have two large integer arrays and I need to efficiently find their intersection. If I had unlimited memory, one way of doing this is to put one of the arrays into a hash table, e.g. using ea...
I am interested to know more about Modulo 256 addition
It has been suggested to me that performing such an addtion across a series of bytes and taking the least signigicant byte is the equiva...
Hi FOlks,
This question it seems a favorite of the guys from amazon.
It has been asked by them to 2 of my friends in the last 2 weeks.
However, none were able to give satisfact...