3,815 Topics
![]() | |
HI, the imput of my algortihme is C1,C2,C3,C4,C5,C6,C7, Target where the aim is : -C7 will be in target Position -C1 d'ont change it's position - keep the distance and the local position between C7-C6,C6-C5,C3-C2,C2-C1 C7-C6= mena the posiiton of the C7 relative to C6 (we must keep it and … | |
Hello, I wrote a library for arbitrary precision arithmetic recently and spent a long time implementing efficient multiplication algorithms. Now I am looking to see if it is possible for me to optimize anywhere else. One place that I thought should be more optimizeable is my division algorithm. Right now … | |
![]() | So, I was given this specification for a quicksort algorithm and I have no idea where to start. Create a template version of the QuickSort algorithm that will work with any data type. Demonstrate the template with a drive function. If it was to do a quicksort, I could easily … ![]() |
Write in an algorithm using with psuedocode or flowcharting Problem statement: You need to provide the instructions necessary to read in 100 numbers and count the number of even and odd numbers. Use the get instruction to obtain the next number in the file and put to write your results. | |
“Guess the number” game One of the simplest two-player games is “Guess the number”. The first player thinks of a secret number in some known range while the second player attempts to guess the number. After each guess, the first player answers either “Higher”, “Lower” or “Correct!” depending on whether … | |
I have no clue why this search isn't working. Two majors problems (1) As is it always returns false (2) It would recognize valid IDs if instead of setting found to true, I just returned true, but I don't want to do it like that, and if there was an … | |
Hello. First time posting on these forums as I am really stuck on my code. The language I am using is GML (Game Maker Language) and the program Game Maker: Studio. As I could not get any help on GM forums I am seeking help elsewhere. The game I am … | |
I have a studied java and self taught on netbeans. i would like to use open source APIs and packages for writing heuristics and machine learning programs but dont know where to start. How to learn to use a new API ? Like genetic algorithm package or metaheuristic package? I … | |
Hi, I have been trying in vain for a few weeks to implement the Eigenface algorithm for Face Recognition. It is the technique based on Turk and Pentland's paper. I am working in VC++6. Although I know the steps involved in this algorithm, I am finding it difficult to realise … | |
I have hard time understanding how does it happen. I mean how does : 6 / \ 3 8 / 2 I get that program finds the num on the left side whos equal to null so its smallest and it prints out 2. But how does it go back … | |
I want to make a hangman game, using actionscript course. and I wanted to make this game a little differently, which can tell more than one letter in one guess. with string matching algorithm is Turbo BM if anyone can help me? | |
Hello, as it can be inferred from profile, I am new. I have read the community guidelines and I have done prior research. I am a very weak coder(through my own fault). However, I like to believe I firm conceptual understanding. **So What is my problem?** I have an assignement … | |
I just started programming in C our first asssignment is writing an alogrithm to compute the volume of water in cubic feet, flowing through a pipe of diameter d in feet, with a velocity of v feet per second, give this fomula r=d/2 area=pi x r squared volume = area … | |
Hi all, I’ve been given told to convert a standard C++ program into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. Our lecturer covered all three principals in one 45 minute slot. I’m completely stuck and would be grateful for any help. The standard C++ program accepts … | |
I have got this code from an article on secure login systems. I know basically nothing about php so I would like to know if this is good code to use? Part 1 of 8: Configure Your Server 1. 1 Install a Web Server, PHP and MySQL on your server. … | |
I get the algorithm and how binary trees should work but this I don't get : look at the basic binary tree insert function : node* insert_in_tree(int number,node* p_tree) { if(p_tree == 0) { node* newNode = new node; node->num = number; node->p_left = 0; node->p_right = 0; return newNode; … | |
Hello, I'm writting a code for comparing words in two sentences. I'm first comparing query with target (forward) and store the scores and again I'm reverse comparing target with query (reverse) and stores the score. I'm doing this inorder to solve the split word problem. For e.g. Sentence1: "Im working … | |
![]() | Hye, I have started to read and implement Cache Oblivious Btree on RAM. Starting with the Weight Balanced BTree by Arge and Vitter. The Deletion algorithm explained says that after deletion of a leaf an ancestor will get unbalanced so to merge the ancestor with neighbor and split if the … ![]() |
Hello Daniweb, I am creating a project (using NetBeans for GUI) for my Data Structures and Algorithms course. The gist of it is as follows: -Take 7 letters as input -Display a valid word as output (And later, when this issue is hopefully resolved, several words) Basically a software one … ![]() | |
So I am working on a system for work where certificates are automatically generated. I have this working but I want to make it better, instead of a super long case statement that centers the name of the person on the image by absolute positioning I want to make it … | |
First of all sorry , I am developing an messenger using servlet & jsp . please help me with code in servlet & jsp a user to register via register module, followed by login and use encrypted or normal chat. Each stated function depends on its own module. The encryption … | |
![]() | Does anyone know where I can download Python source code for Graham's convex hull algorithm? C and C++ code seems to abound, but I need Python code, and specifically for Graham's method (not Jarvis or others). Thanks in advance. |
Hello everyone, this is my first help post on daniweb so please excuse me if I have done something wrong. So as for my question, I have to shuffle an array of card objects. This is the code I have come up with so far. public void shuffleDeck(){ Random seed … | |
Can anyone help us with an algorithm to randomly display elements which has different height and width units in a asp.net page | |
Good afternoon! I seem to disappear from this forum for a while then re-appear...I've been so busy with my first born baby girl that I haven't had time to check my email much less work on any of my projects, but something has come up and I need some input. … | |
Can any one help me , i need an algorithm of the fast fourier transform without using fft function . | |
File security code with RSA in c# for encryption and decryption of any kind of file please suggest me the code | |
I have been trying to create a script that will fetch an image file, store it in a 2d grayscale non-alpha byte array based on the x and y axis so I can perform math operations then save that array back to a new image file. I have come close … | |
I have a vector personInfo that contains class objects of person details vector<person> personInfo; I am trying to use std::find to search for a existing name in the vector. I overloaded my == operator. person.h class person { public: std::string name; friend bool operator==(const person &lhs, const person &rhs); }; … | |
//this is a mine...sieve's algorithm implementation please tell me where i am going wrong...// #include<iostream> #include<vector> using namespace std; int main() { int a,b,p; vector<int> v; cin>>a>>b; for(int i=a;i<=b;i++) v.push_back(i);//inserting all values upto given limit in a vector.. for(p=2;(p*p)<=b;p++) { for(int n=2;(n*p)<=b;n++) { int s=(n*p); v.erase(v.begin()+s);//erase all multiples of 2,3....from … | |
can i ask what algorithm is to used in creating a students information system? thnx | |
Hello Everyone, I need RMS algorithm for video in Matlab. Has anyone it? | |
I have 2 Pages (Listing and Entry) using Master Page. Firstly I am in Listing page. When click the 'New' button in Listing Page, I go to Entry page below. Server.Transfer("~/Job/JobCodeEntry.aspx"); In the entry page, I use User Control for Multi FileUpload. Whenever I upload, I got this err. Help … | |
C++ code for uniform cost search algorithm | |
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <cstdlib> using namespace std; int main() { string title, nameX, nameY; const int maxData = 20; int data, maxValue; int count = 0; vector<int> v; maxValue = *(max_element(v.begin(), v.end())); for(int a = maxValue; a > 0; a++) { if … | |
I have 2 Pages (Listing and Entry) using Master Page. Firstly I am in Listing page. When click the 'New' button in Listing Page, I go to Entry page below. Server.Transfer("~/Job/JobCodeEntry.aspx"); In the entry page, I use User Control for Multi FileUpload. Whenever I upload, I got this err. Help … | |
# Introduction # The subject of this tutorial is a bit more advanced than the subjects I have tackled in the past, but I hope this will find some interested readers. From time to time in C++, programmers find themselves torn apart between using a *Generic Programming* style which primarily … | |
Please dont blame me for double posting, i didnt know this was the best place to post this kinda stuff >.< ------------------------------------ So I have been trying to figure this out for a while. Its a fun puzzle game that might send you thinking for a while, here it is: … | |
Write a C++ program that reads data from a data file called “temp.dat”. The data file contains a maximum of 31 daily integer temperature values for a city. Your program should continue displaying the following menu until the user selects exit (option No. 6). Head of the data Tail of … | |
Hi, I have a problem with changing the password from Microsoft Access Database. I get an Error "[B]No data exists for the row/column[/B]". The password in the database is encrypted and when I change the password it should be decrypting the password and new password should be updated with encryption … | |
hi i am currently working with php which requires registration once the user registers with his/or her details then an email is sent to the user for activation once the link is clicked the account is activated this works perfectly but the question is how do i expire the link … ![]() | |
give an example for a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two … | |
give example of a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two sorted … | |
okay so hi, my problem is on (i think) case 3(the delete), it actually works when you input a movie title of example: armageddon(2012), but if you input a title that has spaces in between example: when i met your mother(2009), it just crashes. i don't know what to do … | |
So as part of my computer science course, we have been instructed to build an encryption process. I have a good knowledge on different encryption methods (RSA for example), however I am having a hard time trying to create my own. Now, before anyone says it, I know, using homebrew … | |
I am having trouble understanding an external sort. I have to code up an implementation for the following below. I have to sort 120 records(they are really just integers), and have a memory restriction of 20 records. So I will have 6 blocks. Let me know if this is right: … | |
Hi, I am working on a project and I have to implement a graph and to look for the shortest path. As I read so far the best way is with Dijkstra's algorithm. I am trying to do it but i have some problem. Can you please help me with … | |
As mentioned in another thread, as of a day or so ago, we have a new algorithm being used to generate the list of Recommended Articles in the bottom toolbar. I was just wondering if anyone found them increasingly relevant? The algo is custom tailored to you based on your … | |
I want to know google all algorithm(web 2.0, panda, penguin and more) in a text format. I want a reliable copy that I can follow . I want to become a good search engine optimizer . So I need to know all the regulations. If any one knows where I … |
The End.