3,815 Topics
![]() | |
Hello friends, I want to found some algorithms for text processing. I have a lots of entries in the database and now I want to split by category (news, history, sport, business etc...) but I don't know none algorithm(s) for text processing. So, my question is, what is the most … | |
I want to sort a list of dictionaries using the inbuilt sort() function for lists. The problem is I am not able to understand, how to give the function a key.. Example: [CODE] a={'name':1,'data':200} b={'name':2,'data':400} c=[a,b] [/CODE] Now, I want to sort the list c with the key being a['name']. … | |
I am developing genetic algorithm for job shop scheduling problems. Could anyone help me about how to fine tune or improvise the solution obtained by genetic algorithms? | |
hi to all, can anyone plz send me the source code of apriori algo in vb / vb.net | |
Aproach to the implementation of K-Nearest Neighbor (KNN) using the Euclidean algorithm. Sample Usage: [CODE]mywork = Words_Works() lit = 'literature.txt' mywork.add_category(lit, 'Literature') # adding files as category comp = 'computers.txt' mywork.add_category(comp, 'Computers') phy = 'physics.txt' mywork.add_category(phy, 'Physics') # saving categories dictionary to file mywork.save_categories() # can be loaded calling load_categories() … | |
damath is look like DAMA but with a twist that contains BASIC MATHEMATICAL OPERATION... hu can give me links that can help to create an AI and also to create a BOARD i dont have any idea in making a game ... this is our thesis proposal pls help me … | |
Hi guys, I've to develop a software to compress and extract files using the RLE algorithm. And I've decided to implement it so that if I've a set of chars like "ABRTTTTOPSSSSSNU" it will be converted as "ABR4*TP5*SNU". Now, the problem is that for example the char '*' could be … | |
On average, I Have been doing quite well on my "TAXA" Wood Wood Knowledge Base website in getting many of the features coded and working --- more than this slow and amateur PHP coder that he could. I even got a search engine working yesterday, something I was not sure … | |
Can someone help me do a fcfs cpu scheduling algorithm in vb .net? that computes the waiting time each process and compute the average. thnx | |
Hi, I have this following code for watershed algo to segment an image. But I do not know what the error is. Can someone help me out [CODE]namespace watershed1 { public partial class Form1 : Form { public int X; public int Y; public int Height; // labels the pixel … | |
Hello everyone I am new with algorithm, this is one of my problem which I am trying to sort out. Can anyone help me with some clues for this... Design an algorithm that will read an input weight for an item to be shipped search an array of shipping weights … | |
Its a typical implementation of mergesort algorithm. It runs in a stable time of O(n*log(n) ). Just thought, I would add it to the library. Its been tested, although not very throughly, so if any bugs are found, just post it here, so others can be aware of them. Its … | |
[ATTACH=right]16482[/ATTACH][URL="http://demandmedia.com"]Demand Media[/URL], a name that isn't well-known but tends to stir existential emotions in those who do know the Santa Monica-based content farm and domain services company, confirmed some longstanding gossip and rumor on Friday when it filed for its initial public offering (IPO). Demand operates something called [URL="http://demandstudios.com"]Demand Studios[/URL], … | |
Am interested in IT but am not a computer scientist, am only teaching my self. Please i have a problem with algorithm, can you give me tips on how to go about it. here is th problem am trying to solve: A quadratic equation can be written in the form, … | |
i am new to minimax algorithm. while searching in google i could roughly understand the basics of minimax. i do have a doubt in using it for tic tac toe. at each stage max will choose the node with maximum value in its child. but how do we evaluate the … | |
I have the line [code=c++]#include <algorithm>[/code] at the top of a file, and the line [code=c++]nth_element(minRollArray,minRollArray+n,minRollArray+numSets);[/code] in one of the fuctions in that file. However, when I try to compile it I get the error error C3861: 'nth_element': identifier not found at that line. I would expect this if I … | |
hello i have problem on this program i don't know the formula to get the exact parking time, rounded total and total charge...please help me... Write a C program program to calculate the parking fare for customers who park their cars in a parking lot when the following information is … | |
I've written the following binary search algorithm and it worked on [i]my[/i] tests. I want to know if there is something I'm missing, as this is the first time I try to write it, so give me a case in which it would fail, and I'll try fixing it. I … | |
Hey folks im having some trouble with a roulette wheel selection that im programming for a genetic algorithm. I decided to do it slightly differently to the standard Roulette wheel, primarilty because its highly likley in standard version that the fittest solution will mate with itself. And that just seems … | |
Hello.. Supposing that i have this code..i want it to end after a character is pressed..but i dont know what to add...i can end it if input is negative or zero..but not char..i tried some experiments but it will end up debug assertion fail..help would be great.. [CODE] // adds … | |
A binary search tree can be used to sort a list. WE simply insert the list elements into a BST, initially empty, and then use an inorder traversal to copy them back into the list. Write an algorithm for this treesort method of sorting, assuming that the list is stored … | |
Hi all i'm trying to make a plugin supported windows MDI application but my brain has stopped! i can't build algorithm! First of all my program will read dll's from plugin directory which is located at the same directory of my MDI parent application, i don't know what will i … | |
Hi All, I have implemented general LZW algorithm, if anyone can help me with motif base lzw algorithm. I will highly appriciate this. | |
I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of … | |
I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of … | |
lets say i have an array of character like this abbcd (01234)-positions and i want to check if this array holds all of the characters to the other array aabcdd return true if ALL of the characters are available. so abbcd is my list and aabcdd would return false because … | |
I wrote the tic tac toe with minimax algorithm. However, there are some bugs that i cannot figure out why the computer cannot win the human. Please help me to fix it. Thanks. I upload a zip of all files for you to check it easier. I guarantee that it … | |
Hello, Does anybody know what is google current algorithm or has a link to an article that describes it? Thanks, Ronit. | |
I'm working on an assignment for Computer Science 121. The assignment is to write a program that prompts a user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example, it should output the individual digits of 3456 … ![]() | |
I finally got this exercise working and i just need someone to tell me im awesome. Or just some feedback or tips on what i can improve(probably alot:)).[QUOTE]Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic … | |
can anyone give me the source code of CAST 128 encryption algorithm written in c++ language?... I really need this for my thesis. | |
Hi i am working on a project that is like a MLM software , but i cant find the algorithm to do that , can any one please help me regarding that so that i can do it . | |
Thought is seed of action, since current to future; the knowledge is most influential that can be rocks the world, what is your ideal ultimate goal? We know Imagination is source of creation. So there is never alone accompanied by noble knowledge. A New Technology for Your Creation of Quick … | |
Concurrency Deadlock functional programming cloud computing parallel computing distributed computing p vs np problem algorithm design communication protocols recursion. I'm a computer science graduate. Thank you. | |
I am trying to implement the game of life in a Tkinter GUI with python. Here is an example of what I am trying to achieve: [url]http://www.math.com/students/wonders/life/life.html[/url] (the java applet in particular) The question is quite basic, just as my background in python and programming in general. The effect that … | |
I want more information about related to find complexity of algorithm. For e.g. to find time complexity of quick sort by using recurrence relation. | |
dont know much about programming will study soon but have so many questions...i was recently researching voxels and see some advantages, i noticed that they are like bitmaps but with a third dimension, so wouldnt this be true if all voxels didnt have color wouldnt the file be smaller as … | |
Hi, I'm using istream_iterator to read input from standard i/p and writing it to standard o/p using ostream_iterator. I expected it to print the input to the console when I hit enter and then exit but it loops for next input after printing and so on. [code=c++] #include <iostream> #include … | |
hello guys... I'm new here... I got some problem with my action script code. I'm trying to connect the flash file to MySQL database. All syntax seems good and I think the algorithm is fine too. but, when I run the .fla file and i press the button, i got … | |
In my book, it says find() must be used like so: ex: iter = var.find(scores.begin(), scores.end(), score); but later it uses this in practice: ex: while (used.find(guess) != string::npos) Why can you simply pass 'guess' var to it here and not need to search a range? Isn't find() an algorithm … | |
This is my code and i do understand the logic but i don't understand the algorithm. About the Parking time coz when i give 1:26 in the time in and 2:20 in time out, i got a negative parking time. here's my code [CODE]#include<stdio.h> void menu(char a); void getData(int *a, … | |
Hi..........I am trying to create a simple text file compressing tool in c sharp? Can anyone give me the code for a simple algorithm implemented in c sharp? I have already used MSDN code using System.IO.Compression but i need something else. It shud be simple and compress a text file.....Can … | |
Hello everyone. This post will contain an amount of personal feelings within it. I'm not a very experienced/skilled programmer, and my main 'background', if i can call it so is in windows forms applications (Visual C++, C#), where conceptually speaking, everything is driven by events, the only possible difficulties arriving … | |
I often see people asking the same question over and over, "How do I learn to program, and where do I start?" Some people may take that question to the next level by asking, "Which language should I learn first?". The answer to those questions is fairly simple, but also … Computer Science algorithm amazon-web-services asp asp.net client-server database-design delphi developer-tools first-post google gui html-css ide java-jsp java-netbeans javascript legacy-mac mac-software machine-learning microsoft microsoft-access microsoft-windows oop operating-system pascal perl python software-architecture unix user-interface vb.net vbscript visual-basic visual-studio web-browser web-design web-server windows-server xml | |
Hello friends, I am looking for a fast algorithm that would calculate that for two directed graphs g1 and g2 ,is g2 is a subgraph of g2 or not. G1 will contain thousands of nodes and g will contain only 100-150 nodes. | |
Hi I am getting a Runtime error when I debug this code. Could someone lend a helping hand? It will be very much appreciated.[code]#include "stdafx.h" #include<iostream> using namespace std; void main(int argc, char* argv[]) { const int SIZE = 9; int numbers[SIZE]; int counter; int temp_swap=0; counter=0; cout << "This … | |
Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to … | |
It's an odd thing to say about a business that spends so much of its time online and is so skilled at search, video (through YouTube) and all that stuff. But for me, [URL="http://www.google.com"]Google[/URL] has only half an idea of what it's sitting on and a number of sites out-do … | |
I need help trying to write the c++ code on the following algorithm. Can anyone please help! I am totally confused on what to do. // Set TotalTax to 0 // Set TotalGrossEarnings to 0 // Set TotalMedicalLevy to 0 // Set TotalEarnings to 0 // Display Heading // Read … | |
Hi, I need help getting started on this program: Write a sort method that uses the bubble- sort algorithm. The bub-ble- sort algorithm makes several passes through the array. On each pass, suc-cessive neighboring pairs are compared. If a pair is in decreasing order, its values are swapped; otherwise, the … |
The End.