3,815 Topics
![]() | |
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 … | |
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 ...   These are the two algorithms i wanted to implement and the expected result is Concept - 1 [0,1,2,3,4] [] … | |
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 | |
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" … | |
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; … | |
can any one help with to design a recursive algorithm to compute the integer part of lgn using only addition and integer division. | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
develop an algorithm for a java program that takes as input a single letter and displays the corresponding digit on the telephone. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
I was hoping to create a simple search engine with php and mySQL how would i put my ranking algorithm into it | |
What languages would i use to create a fast general purpose search engine with an algorithm | |
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, … | |
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 … | |
Can anybody share the algorythm to perform inorder traversal of a binary search tree using parent node(without stack or recursion) | |
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) { … | |
![]() | 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 … ![]() |
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. ![]() | |
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) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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: … | |
what are the drawbacks of Implementing digital signature with RSA encryption algorithm to enhance the Data Security of cloud in Cloud Computing. | |
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 … | |
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 … | |
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. … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … |
The End.