3,815 Topics

Member Avatar for
Member Avatar for ImagingMachine

Hello All, I am writing an image processing application in C# that needs to be speed optimized for faster performance. I have been told that using Unsafe Code together with Pointers can speed my algorithm up significantly. Unfortunately, I have no experience with Pointers at all. How can I make …

Member Avatar for Momerath
0
539
Member Avatar for darkenmac

Guys I have to implement two algorithm using Pseudocodes in order to genarate formal concepts... but the implemented code doesn't give the expected results i want ... ![Inclose1](/attachments/large/3/Inclose1.jpg "Inclose1") ![Iscanonical1](/attachments/large/3/Iscanonical1.jpg "Iscanonical1") These are the two algorithms i wanted to implement and the expected result is Concept - 1 [0,1,2,3,4] [] …

Member Avatar for darkenmac
0
308
Member Avatar for semicolon

Hello. Is there any book that is all about programming or sql compilation of concepts, theory or algorithms? like Sorting Algorithm, no programming language to learn just pseudocodes or flow chart. thank you

Member Avatar for deceptikon
0
53
Member Avatar for RickCJ7

I am rewriting an internal Coldfusion app that stores passwords in the database using Encrypt and Decrypt into C#. My Coldfusion code is using two parameters like this: `<cfset strDecrypted = decrypt(ToString(toBinary(strBase64Value)),"keycode") />` Where strDecrypted is the decrypted string returned, strBase64Value is the encrypted string in the database and "keycode" …

Member Avatar for arrgh
0
507
Member Avatar for drogba123

Hi guys, I tried to get each line of the text file and convert it to SHA-1 formart then to binary but i could not get the output when i tried to do system.out.println the code: package hash; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Formatter; import java.io.*; import java.security.DigestInputStream; import java.util.logging.Level; …

Member Avatar for drogba123
0
471
Member Avatar for jury

can any one help with to design a recursive algorithm to compute the integer part of lgn using only addition and integer division.

Member Avatar for NormR1
0
48
Member Avatar for gerard4143

Does anyone know how to do this? I attached a program that collects all the command line arguments into a map container noting how many times each command line argument occurs. Now I want to sort this map of information by loading a vector with iterators that point to each …

Member Avatar for vijayan121
0
524
Member Avatar for gopi17

I'm an enginnering student, our lecturer has ask us to create an opengl app tat shows the bersenham so far i have derive the algo and the pixels...but i don't know how to draw a line between those pixels.. this is what i have so far void init(void) { glClearColor(1.0, …

Member Avatar for myk45
0
341
Member Avatar for MoBaT

I am attempting to complete the towers of hanoi game using 6 towers and an n amount of rings. I attempted to try moving each ring into a seperate tower and then work each tower one by one using recursion, but I could not get an appropriate output. I have …

Member Avatar for np complete
0
120
Member Avatar for modesto916

Hi, My teacher asked us for homework to do the following task: Create a binary tree with the vowels and walk through this tree using a pre-order traversal algorithm and insert the output in a array, then write an algorithm to print the array using post-order traversal. I haven't figured …

Member Avatar for deceptikon
0
202
Member Avatar for dwivid

Hello friends.. As Google regularly updates its algorithm then I like to ask what next type of link building would be more benificial for us? So many said high PR sites are good as per todays updation. But i don't think like that high PR site help us in link …

Member Avatar for dwivid
0
129
Member Avatar for jdh1231

I have a question about finding the running time algorithm calculatino in worst case. the code I have is function problem1(n); 1. sum = 0; 2. for i :=1 to n-1 do 3. for j = 1 to i 4. for k = j+1 to n do 5. sum++ 6. …

0
50
Member Avatar for Tinnin

Hi all. I'm working my way through "Accelerated C++" have a question regarding chapter 5. The program calculates students final grades by taking a median of the homework grades. I am trying to alter this program so that it uses *list* instead of *vector*. The issue I'm having is with …

Member Avatar for Tinnin
0
173
Member Avatar for borchu

Hello everyone, I am new at Java(android)-before I have little information about Java lang- and in particular socket programming -before I do not know nothing about socket client server programming-, previously I wanted to write simple chat program by using Threads and now I pass this step, two android emulators …

Member Avatar for borchu
0
984
Member Avatar for superchica08

hello everyone I really need help so I have to make functions that find vowels, digits and uppercase and lowercase letters from a sentence inputted. So i was able to do it all in main but i cant seem to make the new program work with the functions properly, it …

Member Avatar for superchica08
0
306
Member Avatar for mekanike08

develop an algorithm for a java program that takes as input a single letter and displays the corresponding digit on the telephone.

Member Avatar for deceptikon
-3
51
Member Avatar for zvjezdan.veselinovic

Can anyone help me with my program? I am making Tic-Tac-Toe and I am stuck. Here is all of my code that I have done so far.... . . . This is called design_of_board.h #include <iostream> #include <string> #include <Windows.h> #include <conio.h> #include <ctime> #include <vector> #include <algorithm> using namespace …

Member Avatar for zvjezdan.veselinovic
0
1K
Member Avatar for nchy13

hi all. i have implemented Karatsuba algorithm for multiplication of large numbers . when i compile .c file it is giving correct output using followin commands in **linux** terminal. **gcc ulti.c ./a.out < hi.txt** But problem arises when i try to run it in **ARM** using following commands. it give …

0
102
Member Avatar for chandrutamizh
Member Avatar for sanghai45

Hi community, I wanted help in making shortest path Finder for non grid based game. Below is the image attached of which i wanted to do shortest path finding. There are nodes and each node may link to 5 or 6 nodes. I have no idea which algorithm will get …

Member Avatar for Despairy
0
167
Member Avatar for Jsplinter

I wrote the following code to test which is faster: performing a multiplication and division many times, or accessing the results in a vector via iterators(perform the calculations ahead of time), or hard coding the results of those calculations into the program. I actually expected storing the results in the …

Member Avatar for Jsplinter
0
269
Member Avatar for Lucaci Andrew

Ok, so, this code snippet is a reply to this thread: http://www.daniweb.com/software-development/cpp/threads/425821/prime-number-c From what I understood form the OPs request, is that, he wanted an algorihm which would check for prime numbers in a given range, applying these conditions: a number is to be considered valid if: a. the number …

Member Avatar for RainbowMatrix
0
602
Member Avatar for Hyperion101

Hey guys! Need some help with homework again, I have absolutely no idea what this means, could someone explain it to me with some example code? *For the quadratic equation problem, complete the 4th phase: Write the C program according to the algorithm specified in the lesson. File name should …

Member Avatar for Hyperion101
0
140
Member Avatar for Venaplex

I was hoping to create a simple search engine with php and mySQL how would i put my ranking algorithm into it

Member Avatar for michael.stegall.90
0
60
Member Avatar for Venaplex

What languages would i use to create a fast general purpose search engine with an algorithm

Member Avatar for pritaeas
0
38
Member Avatar for chixm8_49

Good day. I would like to ask for a better and clearer explanation for the Find-S algorithm. You see, the one in Machine Learning book was not that clear to me and almost handouts I saw from the net rely on that book as well. Given target = <?, Cold, …

Member Avatar for Taywin
0
2K
Member Avatar for np complete

What is it : A simple logic (text based) game, in which you are required to identify the counterfeit coin within 3 chances. How it works : You are given 'x' coins ( best is to play it with 12 coins ). You are asked how many coins you want …

Member Avatar for WaltP
0
361
Member Avatar for niyasc

Can anybody share the algorythm to perform inorder traversal of a binary search tree using parent node(without stack or recursion)

Member Avatar for deceptikon
0
162
Member Avatar for Alexkid

Hi there, I’m fairly new a c++ and am having trouble figuring out how to use a returned function variable. Here’s my code #include "stdafx.h" #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <algorithm> #include <iterator> using namespace std; std::string OMPS (char const* path) { …

Member Avatar for phorce
0
296
Member Avatar for I_m_rude

hi... Can anyone please explain that why we always take 6 points into consideration while finding closet pair of points in a given set of points ?This problem is solved using divide and conquer algorithm. And if anyone please give me psuedo code for closest pair problem, then i will …

Member Avatar for I_m_rude
0
182
Member Avatar for Nivashini1992

hello guys, I 've just recently stated writing algorithms in Data structures. I want questions to write algorithms in array and linked list, please give me questions in that. The questions can be of difficulty level easy and medium. thank u.

Member Avatar for I_m_rude
0
83
Member Avatar for mithila

Please do let me know the time complexity of algorithm s=0;i=1; while (s<n) { s=s+i; i=i+2; } i think the O(squareroot of n)

Member Avatar for umesh sevra
-2
220
Member Avatar for zeusprog

As usual I know I'm probably doing something stupid. I'm trying to write the program below but I seem to have handled my queue incorrectly. The problem could be in one of three places; the way i handle moving on to the next node, my addboard function or my printsol …

0
109
Member Avatar for mj89

Hi we are developing the KNN data mining classification algorithm and are unable to proceed after a point. We have been able to calculate the Euclidean distance metric and find the three closest neighbours to an instance and ordered them in ascending order. However, with the help of the distance …

Member Avatar for philfv
0
345
Member Avatar for triumphost

Why does my checksum not work? I use it on my computer with ATI graphics and it works perfectly fine. When I switch to a computer with Intel graphics, it starts doing random values and they aren't the same. I switch back to my comp, the values are still the …

Member Avatar for triumphost
0
222
Member Avatar for np complete

I'm coding a encryption program where I need to generate random prime. I wrote this code for(i=3; i<10000000; i=i+2 ) { for(j=2; j <= sqrt(i); j++ ) { if(!(i%j)) break; } if (j>sqrt(i)) { cout<<i << " "; } } This tests a number till is square root. Its good …

Member Avatar for TrustyTony
0
243
Member Avatar for ayoub

my problem is that i have written an algorihtm to convert non deterministic finite automata to deterministic finite automata but i couldn't translate it to C program and this is the algorithm i have written qx is a state in the NFA and q0 is its start state QX is …

Member Avatar for WaltP
0
2K
Member Avatar for dewdropz

I need to implement an algorithm for automatic modulation recognition using matlab. I am planning to do this by using pattern recognition, I have read about the decision tree approach, it says to "ideniify the constant envelope signals (CW, FM, FSK). PSK sigals are not considered as constant envelope signals, …

Member Avatar for Taywin
0
460
Member Avatar for vikrantiitr

Here is the problem:-[Click Here](https://docs.google.com/document/d/1m-Jh1lFGf46NtrVJDYbETGVY_uGgxsKivYPMaBqI26k/edit). .I have been trying it for more time but not getting how to solve the polynomial equation after converting from base 'b' to decimal i.e. my algorithm is:- size of array = max(A.size(),B.size(),Z.size()); store A in array as int; add B as int element by …

Member Avatar for vikrantiitr
0
132
Member Avatar for Afropuff01

Hello, I am working on a project in which I have multiple 16x128x16 chunks of data(basically just a 3d array). I need to save the chunks so that they can be easily and quickly rebuilt later. The problem is that each element in the chunk is a short, so each …

Member Avatar for Momerath
0
193
Member Avatar for phorce

Hello, I'm trying to write the Cooley Turkey algorithm for an FFT. Now, The algorithm works well, but, only for 2 numbers - Nothing else. For example, I have used an online FFT calculated, entered the same data and got the same results. Here is the code for the algorithm: …

0
126
Member Avatar for neetika800

what are the drawbacks of Implementing digital signature with RSA encryption algorithm to enhance the Data Security of cloud in Cloud Computing.

0
184
Member Avatar for Nickquane

Plain Text : ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher Text : HETJWOPSQYAZIVMBDUKNRGLCXF Turns the plain text "BOY" into the cipher text "EMX". Note the substitution is a permutation of the 26 letters of the alphabet, so we can uniquely decipher a cipher text by reading the substitution backwards; that is, cipher text "A" is …

Member Avatar for NormR1
0
518
Member Avatar for mochiboo5

Hi everyone, this is my first post and I am new to C++. I am trying to figure out how to do this project. Newton’s method is an algorithm that can be used to solve an equation of the form f(x) = 0 using a sequence of approximations. Here’s how …

Member Avatar for DavidB
0
3K
Member Avatar for shsh111

i hope someone here can help me with this quistion... Finding Tandem Repeats: Suppose that we want to find all short tied repeats w within a string A = xwwy, |w| < 8. This type of repeat is called a tandem repeat and it occurs very often in biological sequences. …

Member Avatar for SagarSe7en
0
162
Member Avatar for I_m_rude

hi... Can you please help me by giving only some HINTS of algorithm used to solve this. I AM NOT ASKING ANY CODE OR SNIPPET FROM ANYONE. I just want hint or algorithm to use... There is a linked list where some nodes have similar number. Sort them such that …

Member Avatar for I_m_rude
0
155
Member Avatar for mochiboo5

Newton's Method to find polynomial solution Hi everyone, this is my first post and I am new to C++. I am trying to figure out how to do this project. Newton’s method is an algorithm that can be used to solve an equation of the form f(x) = 0 using …

Member Avatar for mochiboo5
0
313
Member Avatar for shsh111

Given set of DNA sequences that all may be presented as xiwiyi, where x, y are unrelated random sequences, |x| & |y| < 5, and all wi are of the same but unknown length and are pretty similar how can i Propose and Implement SA algorithm that finds and describes …

Member Avatar for Ancient Dragon
0
47
Member Avatar for Zhedeng08

I am sorry if repost I'm making a schedule of course and I am having problems how to apply ant algorithm in php (cakephp), the problem is where the ant algorithm is embedded I have a table - Classroom - Course - readiness - lecturer - schedule I have a …

Member Avatar for rotten69
0
200
Member Avatar for triumphost

I'm trying to generate Unique ID's for a buffer unless they contain the same content. Inother words if the buffer has the same content as another, the ID should be the same; otherwise different. I've found someone using this algorithm for the same kind of buffer: DWORD CalcChecksum(DWORD *pData, int …

Member Avatar for triumphost
0
137

The End.