3,815 Topics
![]() | |
Hi there, I just started learning algorithms and our lecturer is really crap. I decided to teach myself through introduction to algorithm 3rd edition. Can you recommend any websites or other books for extra reading. Thanks in Advance. | |
Please help me to understand the algorithm from this source code. int time(){ time_t rawtime; struct tm * timeinfo; time (&rawtime); timeinfo = localtime (&rawtime); cout<<"Current time: "<<asctime(timeinfo); } | |
would you just do @Override public boolean contains(T param){ return hashTable[function(param)]!=null; } | |
I want to encrypt and decrypt an excel file via RC4 algorithm Obtained a code in c. I want for encryption and decryption of excel file in c#. | |
I have invented a new software which converts the given algorithm to source code. i invented a new language called algorithmic language to convert the algorithm. | |
Working on the maze program, with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path, where I must use a recursive backtracking algorithm, I cannot seem to print the '#' symbol for the solved maze. Here is my new code: #include<iostream> #include<fstream> using namespace … | |
For the maze program, with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path, where I have to use a recursive backtracking algorithm, I am still having trouble print the maze solution. Here is the unsolved maze: 8 12 ********** * * * * … | |
In this program, I am trying to print a solution for the maze with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path. I am using a recursive backtracking algorithm in this program. For instance, here is a small (8-by-12) maze: 8 12 ********** … | |
write a program to calculate the striking rate of cricket team in c++ if score 90 and balls70 then gradeA,if score20 and balls 15 then gradeB, if score 10 and balls 10 thengrade is c,if score20 and balls 40 then gradeD,if score35 and balls30 then gradeE also algorithm and pseudocode … | |
Write a program to read a maze from a text file into your array, print the unsolved maze, solve the maze, and then print the solution. You may assume the maze will fit in a 24-row by 81-column character array (for 80 character C-strings). The maze will be in a … | |
Write a program to read a maze from a text file into your array, print the unsolved maze, solve the maze, and then print the solution. You may assume the maze will fit in a 24-row by 81-column character array (for 80 character C-strings). The maze will be in a … | |
This is a homework problem. I have 5 modules to encode and decode a txt file using the huffman algorithm along with. I'm having some difficulty with where to start with the decoding module. I have to do the decoding using the functions from binary.h and binary.cpp and my priority … | |
As naive as this is going to sound, I have to ask it. I have a stream compressed in LZW encoding. I can decompress a stream provided it is in a numerical format. The below I have extracted from a pdf file stream compressed in LZW. I'm assuming the below … | |
Greetings, I have some problem with such needed algorithms I know the outlines but I do not know how to implement especially with recursion :( Consider a binary tree **T** of **n** nodes where every node has 4 fields: LABEL (an integer between 1 and n representing the label of … | |
/* * File: main.cpp * Author: TBuchli * * Write a program that helps a real estate agent calculate an average price of *up to 20 homes. An array of data type double should be used to contain the *prices. The program should prompt the user to enter the number … | |
I am currently working on a project for class that reads in from a .txt file the names of a film, the year it was made, and the list of actors in said film, and sorts the info in a binary search tree. In the tree nodes, I have the … | |
I am a computer science student and i have to do a miniproject using only c.my project title is "to estimate time complexity of a given algorithm/program code.please tell me how can i initiate that i tried counter,line count it couldn't help,i have to submit my project at the first … | |
I'm new to Python, but I can use a library to do this, right? Like this one: import pprint import scipy import scipy.linalg # SciPy Linear Algebra Library A = scipy.array([ [7, 3, -1, 2], [3, 8, 1, -4], [-1, 1, 4, -1], [2, -4, -1, 6] ]) P, L, … | |
Suppose i have an algorithm whose time is represented by th function T(n)=n^3+2n^2 So what does n mean? | |
Will this algorithm work similar like Panda and Penguin because as of now there is no news for any big lost in ranking. | |
I have a text file points.txt which is formatted by Point2D/Point3D , X ,Y points.txt Point2D, [-9, -9] Point3D, [-9, -9, -9] Point2D, [-99, -99] Point2D, [-999, -999] Point3D, [-999, -999, -999] What I want to do is 1) retrieve the X and Y values that belong to Point2D from … | |
Hi Everyone.. google as newly updated this. can any body tell me a what is Google’s MugShot Algorithm.??? | |
Hi, After the penguin 2.1 update, 70 - 80 % of web sites affected in SERP. So pls share about what SEO strategies should we changed after this penguin algorithm update. | |
**Search Engine Crawling:** In the whole term Search engine optimization Off page optimization is a very important thing. While Google or similar search engine optimizes a page and gets a lot of links redirecting to a page it saves the data in its algorithm. This data helps to find the … | |
Hello, I noticed that in c++ everything that can be done using a static function in a class could be done by using a public function in the same namespace. Assuming that you bind your classes in a namespace these functions do not take up names in the global namespace. … | |
Write an algorithm and draw a flowchart to print the square of all numbers from LOW to HIGH. Test with LOW=1 and HIGH=10. | |
Last week, the NoSQL database host MongoHQ suffered a breach which exposed customer files, email addresses and password data to the attackers. The ripples from that breach are still being felt, as users of the Sunrise calendar app on the iPhone found out this morning. Luckily that password data was … | |
Hi everyone, I need some help, I don't know where and how to begin and I'm seeking for some advice. Problem: I need to design a custom C# library to better manage a client list for internal projects. The library must be capable of importing data in a textfile(clients.txt) into … | |
I am trying to generate a program using the builtin Random and generate an algorithm that determines whether the number is odd or even. I need to write a program that generates 100 random numbers, determine if its even or odd and finally count the number of even and odd. … | |
hello all I'm trying to write a program that returns us [U]majority element[/U]. [I]An array is said to have a majority element if more than half of its entries are the same - [I]>(size of the array)/2[/I].[/I] It wouldn't be a problem if i had no conditions, but i have … | |
So I need help creating a RPG program for my class. Below I posted what is needed...Any help is greatly appericated!! ***Unit 13 Graded Programming Assignment - RPG Game*** You are to create an RPG for your programming assignment. This program: needs to use at least one vector needs to … | |
I am trying to create Dijkstra's algorithm for a weighted graph, and have a flaw, I believe, in the implementation of the basic algorithm. It only visits the nearest nodes, checks the edges, but nothing else. Right now, I'm afraid I'm too close to this to see what's going on. … | |
Why are some algorithm to solve TSP using dynamic programming can solve up to 10 cities while some can go beyond that...i.e. 10, 100 or more..!! What is the factor that determines the capability of the algortihm to solve more than 10 or less..?? | |
Hello all!! I am new to SEO, and after searching and reading articles and tutorials about SEO. I found that recently, after the Google Penguin algorithm was updated, many websites dropped because of the low quality backlinks on their websites. As a solution, I read that categorizing backlinks into Low … | |
This simulator works for: 1. First Come First Serve (FCFS) 2. Round Robin (RROB) 3. Priority (PRIO) 4. Longest Job First (LJF) 5. Shortest Job First (SJF) algorithms. The program is written for gcc linux compiler. In input file a sequence of processes coming to the systems included, where also … | |
I am trying to create a text based graphing program and I am running in to some trouble. My trouble isn't so much with the programming its with one particular algorithm in creating the points. So, here is sample of what the graph will look like with points included. (y … | |
Hi. I was wondering how I could replace objects in a list without using a single loop. Here's what I have in terms of algorithm; but, I don't know how to implement.: replace(List list, oldObject, newObject) 1. if the first element in list is not null 2 if the old … | |
Hi, I'm newbie with C++ and I found an example which I need http://ideone.com/Eikbr4 But I've a question, how do I seperate this piece of code into .h and .cpp.. I tried to do something similar on my own but I'm having struggling with it after multiple try.. I've read … | |
• security - propose an algorithm using IA or Machine Learning for an intruder on a network I need a solution this as my thesis | |
Hello , I am trying to solve some problems from the "Computer Simulation Methods" book. It says > > Write a class that solves the nuclear decay problem.Input the decay constant l from the control window.For l=1 and dt=0.01 ,compute the difference between the analytical result and the result of … | |
I am having a problem deleting nodes from my Binary search tree. What I have so far does part of what it is supposed to do. I read in an input (paragraph of text) to create the tree (organized via ASCII character values). I make it, then print out all … | |
Hi all. I'm kinda new in this forum. But I really need answer for this question. I have a project I do for my university which is automated timetabling using Genetic Algorithm. I understand GA through pseudocode, but I don't know how to apply it in timetabling. So can I … | |
Hi. I am to develop a Smart Scheduling System using Genetic Algorithm for my final year project. But I don't quiet know where to start. I already red a lot of article about genetic algorithm but don't know how can I implement it into my project. I'm getting really frustrated … | |
Hi all, I just wanna ask if I can create a system based on PHP. The system is about automated timetable system using Genetic Algorithm. I've previously did the system in Java, but I realized that I don't have the superior knowledge in Java.But I do have much better knowledge … | |
given int a[]= {3,2,7,6,8,1,4,5} vector<int> v(a,a+8) use the stl copy algorithm to display the last 5 integers in the vector to cout with each integer on a seperate line. copy takes three argument. third argument is output container. In this case it is v.but v already have 8 elemenst. How … | |
I'm in serious need of help with a C++ based prime number generator. I have the program to create and run the code, but i dont have the knowledge to develop the code and I'm looking for one of you guys to build the code for me. I need a … | |
how to write an algorithm that converts deceimal to binary, using mod , div and an array to display the answer | |
I have been looking for Prim Algorithm on daniweb.com website and I found multiple threads dead but still unsolved. Few people needs expalination of Prim Algorithm and others need its working code. Well, to help everyout out, here is a link to working Prim's Algorithm code which is easier to … | |
I know that there's mention of this date in another thread I started here, but I wanted to draw attention to it. We lost 50% of our traffic on Tuesday, November 20th, 2012, and haven't recovered since. That day I don't believe lines up with a Google Panda algorithm update … |
The End.