3,815 Topics

Member Avatar for
Member Avatar for coleguitajuan

Hi all! Im trying to creat thecode for save a value into a variable ($sales_code) formed per 2 letters (VW, DF, RK or DI) depending on this algorithm: 79% of the time it's VW, 7% of the time it's DF, 7% of the time it's RK, 7% of the time …

Member Avatar for Menster
0
110
Member Avatar for kostasxx

i cant understand why this happens i m making a simple implentation of sieve of eratosthenes algorithm but code doesnt run on gcc [code] // calculate primes from 1 to 100 #include <stdio.h> #include <math.h> int main() { unsigned long i,x[99],w; for ( i=1; i<100; i++ ) { x[i] = …

Member Avatar for kostasxx
0
94
Member Avatar for amadaeliseo

Pls help, Can anyone help me to implement n-way merge sort (external merge sort) algorithm in c#. Thank you.

Member Avatar for Diamonddrake
0
94
Member Avatar for mathueie

Hi, How to get directory size? Recursive alogrithm take more time for calculating directory size. so I don't like search a recursive algorithm. Any other method

Member Avatar for Salem
0
277
Member Avatar for san26

can anybody help me on this algo provided below.................... I need a c++ implementation for the following algorithm............. Algorithm RST-T Input: A set of points P = {(xi, yi)} Output: A rectilinear Steiner tree with all points in P connected A. Build an RST-T with horizontal trunk 1. Set ymid …

Member Avatar for Nick Evan
0
132
Member Avatar for bettsnirvana

All my backlinks in MSN are gone, is it because of the new search engine called "Bing"? Did microsoft change their algorithm?

Member Avatar for MktgRob
0
88
Member Avatar for kadamora

hi... i'm doing program in C++ to optimize logic circuit using genetic algorithm...with and,or,not gates. but the problem is that i'm lost.. i don't know how to encode that data,how should I initialize the population and what should be the fitness function... so any help would be appreciated and any …

Member Avatar for Salem
0
64
Member Avatar for toader

Hello,i need assistance in completing the code, I do not have enough experience, anyone can complete it? it is at one point change 1 word in new and need to able to change more than words .. Thank you very much for the former. [CODE]#include <iostream> #include <fstream> #include <string> …

Member Avatar for Acis
0
187
Member Avatar for nithy_compvue

I am trying to use base64 encryption with DESede algorithm. I have a solution in JAVA. for Example: The encrypted form of the word 'password' is '7JHe7Oo335uQ4JqjxIWyxw==' I need similar solution in PHP. Can anyone help?

Member Avatar for parottamaster
0
56
Member Avatar for 3houd

I am a beginner in Java programming and I want you to provide me a code of the following steps: First: create 2-D environment 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 …

Member Avatar for BestJewSinceJC
0
108
Member Avatar for sdmahapatra

I am getting an error C2664: 'F_Ite' : cannot convert parameter 1 from 'double *' to 'double'.Will please anybody help me from this problem.I am new in C++. Thanks [CODE]#include<iostream> #include<cmath> #include<algorithm> using namespace std; // you should not use this statement. void F_Ite(double,double,double,double,double,double); // never ever declare global data …

Member Avatar for sdmahapatra
0
285
Member Avatar for Clockowl

Hey guys, I'm trying to create an MSCache (2 times MD4) cracker. I took the RFC thingy and implemented it in a cracker which is.. fast, but not as fast as I'd like it to be. So I searched a bit and stumbled on MDCrack, which claims it can do …

Member Avatar for dzhugashvili
0
463
Member Avatar for Peter_APIIT

Hello to all, as you all know FFT algorithm has many variation in terms from its pruposes. My requirement of FFT is integer multiplication and polynomial evaluation. I looking for good reference about the topic. If you have any, please post it here. Thanks.

Member Avatar for StuXYZ
0
141
Member Avatar for richardcyper

[B]B]DATA STRUCTURE IN C[/B] TREES please help to device an algorithm to compute the size of the sub-tree rooted at each node .

Member Avatar for s_sridhar
0
66
Member Avatar for drjay1627

hello, I wanna create a struct in python. the struct needs to have a char and an array of chars. eg. (ruby code): [code] Somestruct = Struct .new(:character, :characterArray) structure = Somestruct.new(" ", []) [/code] How do I do this. I made a Trie in ruby and now I wanna …

Member Avatar for scru
0
140
Member Avatar for adrivit

Hello I will be joining Duke University (Durham, NC) as an applied math major with a research interest in applied neuroscience and Artificial Intelligence. So, should I buy a Macbook or a Macbook Pro for all the mathematical work that I will be doing? The work should include a lot …

Member Avatar for dirt14
0
113
Member Avatar for cruisx

Hi guys, I am making a memory game for my school project and i just have a few things that i would like to add to it to make it better. In my game, i have a 5x5 grid that has letters hidden by $ underneath. So when the user …

Member Avatar for mrnutty
0
180
Member Avatar for giftalp

I have problem to start. I need algorithm for program that prompts the user to input a sequence of characters and outputs the number of vowel, using user-defined value returning function Vowel. Please help

Member Avatar for Dave Sinkula
0
2K
Member Avatar for ippomarley

I have a program which is supposed to find the shortest path between airports and users' flight data to find the shortest path between airports; that is, the airports are the nodes and the flights are the edges. I've not started to implement the algorithm as yet but I am …

Member Avatar for ippomarley
0
220
Member Avatar for stark025

[CODE="Visual Studio 2008"] #include "storage_sql.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #define strcasecmp _stricmp #include <cstring> #include <cstdlib> #include <string> #include <sstream> #include <algorithm> #include "compat/snprintf.h" #include "common/eventlog.h" #include "common/util.h" static const char * sql_backslash_to_underscore(const char * key) { if (!key) { ERROR0("got NULL key"); return NULL; } std::string rep …

Member Avatar for Ancient Dragon
0
194
Member Avatar for Mubo

Hi guys, these days Social Networking Sites are spreeding faster around the world and they getting more users into their networks daily. My question ist. How to implement an algorithm as simple undirected graph in social networking site and how to search and find special groups who know each other …

Member Avatar for JamesCherrill
0
145
Member Avatar for waphon

nowadays,i think i am the first man of trying to develop an ai program. the basic workflow is read two files,one input file(this file is generated computer peripheral OCR equipment) and another(this file is generated by customs expected result,it's made-to-order by miscellaneous software,in future,this kind of results or problems can …

0
70
Member Avatar for George2

Hello everyone, I am working on a dictionary application implementation. I have question about a string pattern matching algorithm implementation. In this algorithm, * can be used to match any sequence of characters. The input is string s1 and string s2, the algorithm using s2 to match s1, and the …

Member Avatar for javaAddict
0
447
Member Avatar for Chris1971

Hi All, this is my first post as a member of the forum so firstly nice to meet u all, secondly if this posted in the wrong place, many apologies Admin. My problem and query is this I have been asked to find out the most appropriate language for a …

Member Avatar for sknake
0
50
Member Avatar for martin_jj

Hello, Please, do you know how to implement RSA/ECB/Pkcs1Padding encryption witn non-exportable private key in CryptoAPI? I have only a handle to my private key. The result should be exactly the same as java Cipher implementation of this algorithm does. CryptoAPI always gives me different result. I've tried many ways …

0
59
Member Avatar for mimio134

Hey guys appreciate u can help to do this: Write a program to implement linked lists to handle large integers. Since we cannot store big integers in any of the primitive types, the only way is to manage each digit as a node in the linked list. Take care that …

Member Avatar for Sky Diploma
0
2K
Member Avatar for pspwxp fan

Hello, i'm learning to work with loops and it was fine untill it came to nesting loops. In an exersize, i was told to use nested loops to display a pattern of asterisks like this: (2 asterisks, 4 asterisks, 6 asterisks, 8 asterisks, 10 asterisks, 12 asterisks) ** **** ****** …

Member Avatar for pspwxp fan
0
577
Member Avatar for lukethedrifter

Hello: Anyone know of an easy way to cast the unsigned char in[16] in the below code to an LPCWSTR using just the CRT? I tried swprintf but it wasn't working. I've been googling this for a week and appreciate the help. [CODE]/* ****************************************************************** ** Advanced Encryption Standard implementation in …

Member Avatar for Ancient Dragon
0
226
Member Avatar for Intrade

I'm trying to figure out how to merge to full, complete binary heaps if their heights differ by more than 1. For example, a heap with 7 elements merged with a heap with 31 elements, etc. Here's my Java Code for the problem. I can't quite figure out what I'm …

0
79
Member Avatar for catchmrbharath

I wanted to know an efficient algorithm to calculate the product of divisors.. My brute force method is giving me a Time limit exceeded.

Member Avatar for ArkM
0
138
Member Avatar for lss123

I just wanted to post the code I wrote for an OO C++ solution to solving sudoku puzzles. I'd like to invite anyone to ask questions, give comments, or make critiques on the methods or algorithms in the code. For a recent job interview, I was tasked with writing a …

Member Avatar for lss123
0
475
Member Avatar for phillipdaw

I am writing a utility to allow engineers to insert and remove code I have written for one time use. This code will be used to automate one specific (and lengthy) debugging phase, then it will be removed using my utility. Currently, my utility simply finds the exact function declaration …

Member Avatar for phillipdaw
0
154
Member Avatar for vs.vaidyanathan

I have followed the normalised eight point algorithm(as outlined in Zisserman and hartley) for estimating the fundamental matrix between two cameras. but the determinant does not get constrained. i tried adding more points(upto 24) but the results only get worse... could any1 please tel me what could be the reason?

0
70
Member Avatar for OffbeatPatriot

I've tried several times now to write my own neural network class and I think this is the closest I've gotten, the network seems to run properly but it doesn't seem to learn correctly. I'm trying to make it approximate exclusive or but it seems to be only capable of …

Member Avatar for OffbeatPatriot
0
152
Member Avatar for vikscooldude

plz someone help me to give me notes related to data structure and algorithm plz help me its urgent can someone help me i really thankful to him

Member Avatar for ddanbe
0
76
Member Avatar for kostasxx

i need to make a program that finds all primes between some numbers the biggest number is 1000000000. the code that i have works fine, the only problem is that what i thought that would solve this, is too slow [code] #include <stdio.h> int main(){ FILE *fin=fopen("in.txt","r"); int t,n1[10],n2[10],i,j,ex,k; fscanf(fin,"%d\n",&t); …

Member Avatar for vs.vaidyanathan
0
200
Member Avatar for hodge-podge

Alright, so I am very new to c++ and I just felt like doing a little encryption experiment. In about ten seconds of thinking I've decided that for my encryption I want to: Get the ASCII value of a string of text entered by the user, and store it in …

Member Avatar for ArkM
0
150
Member Avatar for nishant52

I'm developing a Java application where I have to implement Shortest path algorithm (dijkstra's). I've stored the details of nodes in database. But my problem is that the number of nodes is very large (1000+) and taking all the nodes into consideration will increase the time and space consumption of …

Member Avatar for VernonDozier
0
120
Member Avatar for Qisrem

Hello, I need some help if anyone has an idea. I'm working a memory management simulator trying to implement a mark & compact algorithm. To do that I need a function that can move/copy a block of memory from address A to address B. I tried using [CODE]memmove (dst, src, …

Member Avatar for Qisrem
0
86
Member Avatar for brbsmn00

Dear Guys, I am Simone from Rome. I have a problem. I need to write an algorithm for the encryption of data, and to implement it I need to work with integer numbers of about 100 ciphers (for example I need to make a multiplication between 2 numbers of 70 …

Member Avatar for jephthah
0
73
Member Avatar for losthope10

Could someone explain how to get to the answers. I read the book from class and cannot find the answers to the last 3 problems. I am not asking for the answers, just how to figure to resolve the problem. I appreciate the help. Consider the following selection statement where …

Member Avatar for bdvenom
0
141
Member Avatar for toucan

I'm trying to find the shortest path between two locations in a 2D array with only horizontal and vertical moves allowed (Manhattan distance). I've tried to convert the pseudocode from Wikipedia's article on the A star algorithm ([url]http://en.wikipedia.org/wiki/A_star[/url]) into Java, but it doesn't work. Note: the game works properly using …

0
82
Member Avatar for nishant52

I'm doing a project on Bus Information System, [B]using JAVA[/B], which takes source and destination station from user and displays bus numbers between those two stations. Here two cases arises:- 1) Direct bus connectivity - in which case it displays the list of direct bus numbers between those stations. 2) …

0
66
Member Avatar for Grub

Hi, I have a JTable with a tablecellrenderer I have extended from the defaultTableCellrenderer. In my Table model on which the table is based, I have an algorithm that searches each cell making comparisons, when it finds rows with similar values, it adds colour A to an arrayindex and continues …

0
97
Member Avatar for vasek

Hello, I am happy to find this forum. I was trying to read a file to matrix matice. The input file looks like this: 7 1 4 5 6 9 3 2 2 0 7 6 8 6 1 2 4 2 9 1 7 2 3 8 [code=c++] #include …

Member Avatar for homeryansta
1
132
Member Avatar for still_learning

I am working on solving several problems and this is one that I came across which I am not sure how to solve. If someone could help me here that would be great. Here is the problem, thanks much in advance: Your boss comes up with the following idea: Move …

Member Avatar for siddhant3s
0
157
Member Avatar for SQL_n00b

Can someone please help me figure out what I am doing wrong? Basically I have a form where users enter a bunch of values. On submit, the form values are dumped into a table in the DB. The process is as follows: Users enter a set of values TWICE for …

Member Avatar for SQL_n00b
0
145
Member Avatar for tizzo233

[code] // s2.cpp : Defines the entry point for the console application. // Project Stage 2.cpp : Defines the entry point for the console application. /* Algorithm Menu() Choose option Create a new expense Enter the initial amount of money in bank or to add money to bank from paycheck …

Member Avatar for tizzo233
0
154
Member Avatar for zoner7

I'm trying to write my first game, and in order to do so, I need to design a recursive algorithm with backtracking capabilities. In the game, there is a grid of tiles. Some of these tiles back be moved to; however, a few of them are impassable. The goal of …

Member Avatar for zoner7
0
86
Member Avatar for Peter_APIIT

Hello to all, i have developed a miller rabin primality test program but return me wrong result all the time. I don't know what wrong with it after few days of debug. Code: [code=cplusplus] #include <iostream> #include <sstream> #include <string> #include <bitset> #include <vector> #include <limits> #include <algorithm> #include <functional> …

Member Avatar for Ancient Dragon
0
204

The End.