3,815 Topics
![]() | |
I have a problem . I have to draw a circle at a particular distance say 50 meters from a given lat/log.I refered to Aviation formula's and find a formula to calculate lat/log at a distance and at a bearing which is as follows:- A point {lat,lon} is a distance … | |
I'm trying to figure out how to use the max_element algorithm on a vector of structs, rather than POD's like int etc. This is my struct: [code=cpp]struct NameComponents { std::string sValue; std::string sDescriptor; int nOrder; int nStatus; // Construtor. NameComponents( std::string inValue, std::string inDescriptor, int inOrder ) : sValue( inValue … | |
Hi! I need help to my c++ program. I created a program that is much like the "Who wants to be a Millionaire" television show. It has questions and the right answers and three lifelines. How can I possibly do eliminate a lifeline after being used.? this is the program … | |
Hey Peeps....... I want help regarding aol instant messenger mail client. i have got its password storage location. it stores it in registry as like this: Hkey_current_user/software/america online/aol instant messenger/users/login I want to know that how this mail client decode its password from this file. Do you have any knowledge … | |
**This forum is meant for discussing programming languages in addition to exchanging code and algorithms.** However, it has become a problem where too many students are posting homework problems expecting a quick solution without ever trying for themselves. Though we are all here to help, please don't expect quick solutions … | |
how do i generate all the topological ordering of (directed acyclic graph), i have written a program that can find 1 topological ordering, the problem is once i am finished i am left with a empty linked list as my algorithm involves deleting the traversed nodes which is crucial for … | |
Hi, I have a problem with signal handler algorithm in linux. My code is hanging ( It is continuously looping inside the signal handler) . I am pasting my code here... any help is appreciated [code] #include <stdio.h> #include <stdlib.h> #include <signal.h> struct sigaction oldHandler; void myHandler(int sig, siginfo_t *siginfo, … | |
Here is the deal. I am writing a program in assembly that compresses and decompresses text based files. The user should be able to input a text file, and declare the name of what that file should be name when turned into a .drl file (just a random extension for … | |
I thought I would let you's php gurus know that I am starting to come close to cracking the Sha1 algorithm. And surprisingly it is an easy one to crack. So I would recommend switching to something like the whirlpool algorithm. | |
I am a final year university student quickly nearing my project deadline. My project is to write an artificial intelligence program for a robot to find its way through a maze. I have been using a Lego Mindstorms Robot and the NXC (Not eXactly C) programming language to write and … | |
C++ program that will implement the popular numerical procedure called Thomas Algorithm. this is my final project in the lab which i have no idea how to start off... and i am really bad at c++ because this was my first ever programming class i ever took in my life... … | |
Hey Peeps....... I want help regarding CORE FTP( File Transfer Protocol) Client. i have got its password storage location. it stores it in registry as like this: [B]Hkey_current_user/software/ftpware/coreftp/sites[/B] I want to know that how this FTP encode its password in this file. Do you have any knowledge of its working...any … | |
I want to try to understand the method of using POSIX threads to interact with a sorting algorithm such as the odd-even transposition sort. I have written my program to do a odd-even transposition sort without threads and this is my current result: ./sort data File opened successfully. The numbers … | |
Hello, I have been trying to turn this pesudo code into java code but i have been unsuccessfull. I need help doing this and any help would be appriciated 1.Initialise memory_block(0) = 99999 2.Computer initial_memory_waste = memory_block(0) – job_size 3.Inialise subscript = 0 4.Set counter to 1 5.Do while counter … | |
I have been working on this program for about two weeks. I missed the day that the professor covered the material necessary to code this program due to surgery. I am now behind about 5 programs that are due at the end of the week and I'm trying to teach … | |
Hi all, I am creating a Genetic Algorithm, and I have two Arrays contain int values, I would like to know a easy way of Split each array into 4 random sections e.g. Array 1 = [1| 4 5 3| 1 4 |6 7 8| 1] Array 2 = [2| … | |
the rc6 paper say this [CODE]Key schedule for RC6-w/r/b Input: User-supplied b byte key preloaded into the c-word array L[0; ..., c - 1] Number r of rounds Output: w-bit round keys S[0; ..., 2r + 3] Procedure: S[0] = Pw for i = 1 to 2r + 3 do … | |
Hello guys, can somebody give me example of some simple DFS problem and solution (Source code). I just need to understand DFS algorithm. Thanks XTRobot | |
can anyone tell me what i did wrong with the decryption part of this code? ive been looking at it for some time now (while working on other related stuff), and i cant seem to find the problem with it. its getting really retarded, on my part [B]and this is … | |
Hello. I am thinking of implementing Tomasulo's algorithm in a CPU that doesn't have one, as a thesis for my M.Sc.. My professor likes it, he said that he wanted one too for a CPU. I would love to do it, the only problem is that I am afraid that … | |
Can anyone help me with finding the the time complexity of the following algorithm?? for(i =0;i<n;i++) for(j=o;j<n;j++) for(k = a[i][j] = 0; k<n;k++) a[i][j] += b[i][k] * c[k][j]; please!!!! and explain step by step ..... | |
in our univercity we a re oraganizing an Algorithm competiton for 1st years,2nd years and 3rd years. so guys plz can any one give me good it based Algorithm to give those student. creating an Algorithm for given prob;um for 1st years are only given 1 hour. so plzzz/... | |
Can someone please advise me as to why my assignment is not working? I am doing the exact same thing I did on another assignment and for some reason it wont work. Assignment 1. You are a programmer that works for a local bank. You are creating classes to be … | |
Hi All, I am trying to learn stl to have some knowledge of how things work. I have just covered some basics and I have come to a block. I will explain what I am trying to do. I have a class that performs some basic operations on its member. … | |
Hello everyone. So, I am trying to come up with an algorithm to do following: I have total 12 cells that I need to fill until program stops. I have 3 rows and each row has 4 columns. As an example, let me illustrate this as in airplane. So you … | |
[QUOTE=ramesh vankayal;1154302]i want to mini project c and dbms[/QUOTE] hiiii.....can you help me in blowfish algorithm...i want to know about the secret keys which are used in encryption of password,...please help me !!!!! | |
I'm trying to design an algorithm that will output data from an array in random order but not repeat until every peace of the data has been output. The size of the array is small (about 10). it picks a random prime number smaller than the size of the array(lets … | |
i am trying to write this program and i have no clue how to do it. Could someone help me please. thank you! a) The program implements insertion sort, merge sort, quick sort, and counting sort as subprograms or classes; b) The program reads input from a data file specified … | |
![]() | Hey there :) I need a little enlightenment over this one... I took a snippet from the Mark Allen Weiss' book - Data structures & Problem solving using Java... but I didn't understand it really. Here's the code: [CODE]1./** 2.* Simple insertion sort 3.*/ 4.public static <AnyType extends Comparable<? super … |
the problems can be solved by divide-and-conquer ides has the following general formula for the running time: T(n)=aT(n/b)+f(n) give an example algorithm for each of the following cases and solve the corresponding recurrence relation by iteration method and by master theorem . a=b a<b a>b | |
Hey all I am currently practicing my error handling processes and am having trouble filling up a combobox with a list of all the countries so that the user can choose what country they are located in. What I am creating is something like a registration form. I found an … | |
Hi! I would like to split vector elements into the two vectors. One output vector shall contain elements that, for instance, are odd, and another output vector shall contain even elements (actually the case is more complicated;). I wrote something like this: [CODE] typedef vector<int> ItemVec; static bool isOdd(const int … | |
I am currently creating a registration form and it contains error handling processes for the text boxes, like certain characters are only allowed in a certain textbox and so on. So for my first try I tried creating an algorithm that will check if the user only enters letters from … | |
I would to get assistance on a problem involving binary search trees.writting a search algorithm and a pseudocode of a 5 node binary search tree | |
hi, i'm not good with n/w security or i donno how sha, des works :confused: ,... so pls tell me a [B]simple[/B] algorithm to implement enc and decryption in java.:icon_mrgreen: thanQ, Beanboy:cool: | |
I am trying to get a program that gets a list from a txt files outputs it. then inserts a node into the list and the list grows dynamically. Everytime I insert into the list the list is filled with the same values following the insertion point. For this example … | |
I've been given a practical where I have develop a random bubble sort algorithm and I've created one already where the user enters the elements needed to arrange the numbers, I now have to use a random number generator that uses a set of 10 random numbers from 1-10000 and … | |
Hello, I have a software-based project of using human recognition algorithm to detect an intruder and be able to differentiate if the intruder is human or non-human. Any ideas on what recognition algorithms I could use?:) Thanks! | |
help i need to search and delete a node from a link list but i am not sure of the algorithm can someone please help me with the algorithm and concept need example thanks.. | |
send me the algorithm used in artificial passenger device? algorithm used in brain fingerprinting? its urgent plz send me at the earliest. | |
I am doing my homework and am having trouble finding the answer to one question. We are supposed to view the code below: Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output … | |
My assignment is: Your goal is to write a program that sorts a list of 4-letter words using different sorting algorithms and report the fastest method. First your program should prompt the user to indicate the number of words to generate. Your program should then generate a list of random … | |
i want to implement queue in scheme with out increasing the complexity of the algorithm. Right now for inserting an element at the end of the queue i need to travel through whole queue. that makes insertion O(N) process. pls help me with this. | |
Hello all I am currently coding a starter multi threading program in c. It is supposed to find all the prime numbers from 2 to n. I have no previous experience in thread coding so I am looking for some help and maybe some debugging advise It only calculates primes … | |
Can someone please help me get my code running! I am trying to do a sectional sort based on mileage. I have got a lot of code wrote based on the book, but I can not get it to work or figure it out! Please assist! Class [code] #include <iostream> … | |
Hello there, I'm writing a dictionary that stores keywords and the pages which contain the keyword. This is a follow-up on a PageRank algorithm we're doing for an assignment. The first part is the read from a file containing all the web addresses and store the in a matrix, and … | |
Hi I am supposed to write that implements a simple version of the BucketSort algorithm the only problem is I have no clue what that is. Any tips and examples on this would be awesome Thanks | |
I was wondering if there were away to repeat the same test multiple times and average the time. The code works fine [CODE] #include <cstdlib> #include <ctime> #include <iostream> using namespace std; void PrintArray(int* array, int n); void QuickSort(int* array, int start, int end); int partition(int* array, int pivot, int … | |
Greetings, String parsing isn't always an easy task. Especially in cases where you need to split a single string into a great multitude, but also accounting for maximum performance. The following code presented does this task simply. Using precise allocation techniques perform greatly when writing an algorithm to precision. | |
Hi all, I've spent the last week trying to sort this out, and the more I delve into it, the more confused I'm getting. I've done some background research (searched on google and here for sort function issues) and really I can't make head or tail of what's going on. … |
The End.