3,815 Topics
![]() | |
I have to write a program that uses the shortest path that starts at a "home" city and goes to 3 other cities and back "home" again. I have been reading for a few hours about a good way to solve this problem. It seems to be a variation of … | |
I have a dice and chips game that I devised I would like to create for the iPad. The only programming experience I have is with my TRS 80 over 25 years ago using basic. I need to create the play field with dice and chips and be able to … | |
Hey i read about various Time Complexity Notations. I just wanted to know how big can the C (Constant ) can be . As in Big Oh Notation we say f(n)=O(g(n)) iff f(n)<=c*g(n) for all n>=n0. For eg. We have f(n)=3n+2=O(n) as 3n+2<=4n for all n>=2 but what if we … | |
we were given a task to create a for loop with where the user gives a number and became this output and we dont know if there is a sequence or an algorithm to it like fibonacci anyone recognize this pattern? input: 3 0|2 --- 0|2 Nice window. Thanks! input: … | |
i m AFONRINWO ADEBAYO post graduate student of Obafemi Awolowo university ile-ife,Osun state,Nigeria,presently my thesis : is guidiance system for lawn mower controller, i m really having issue with journals,i can till also narrow it to Routing algorithm for lawn mower,please i rilly need to rub mind with great researches … | |
This Project is to implement some procedures doing the following: 1. Represent any graph using these input parameters: • A parameter to represent the graph by Adjacency Matrix, or Adjacency List. • A parameter to indicate whether the graph is directed, or undirected. • A parameter to indicate whether the … | |
Hi i am a begginer in learning computer science and i received a assignment question on arrays. The question asks me to split the characterArray= joe,487 into two seperate variables, one is a variable called idArray where the numbers 487 will go, then i have to have three spaces for … | |
Hello I have final project for java and I didn't know how to do it >< may help me to solve it?! ------------------- Consider the following table about students’ grades for quizzes in class : http://s8.postimg.org/a9sqir7md/Screenshot_2014_05_28_11_26_53.png 2 Write a Java application that calculates the minimum, maximum, and average for each … | |
my code tries to generate a tree for reversi/othello but it runs into an infinite while loop and i am unable to debug it.The purpose of this code is to make minmax algorithm for the aiplayer.please help. import numpy board=numpy.array([[0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0], [0,0,0,1,2,0,0,0], [0,0,0,2,1,0,0,0], [0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0]]) matrix_list=[numpy.copy(board)] points=[] decoy_list=[] … | |
Hello guys we all know that Google has crushed many site yesterday by updating Algorithm and Zimbio become the top scorer by getting more than 500% traffic.Is there any one out there who has reached their SEO strategy. | |
Hello everyone, I got a small question on encryption, actually I am trying to learn the various techniques to encrypt a message. Now I am trying AES, using the built in security package in Java. The problem is that I am having a problem with this encryption algorithm. Actually I've … | |
**How do passwords work?** What a password isn't, or at least really shouldn't be, is some kind of secret word or phrase that is simply compared against a table of usernames in a login database. Such plaintext systems are about as secure as a chocolate padlock on a furnace door. … | |
encryption is one of the thing through which we can hide our file folder or anything else now we wanted that to encrypt a folder usin aes algorithm i have compressed the file how to encrypt file or folder | |
A school wants to monitor the number of hours spent by a class of 30 students on the Internet. Using pseudocode or otherwise, write an algorithm which will; • for each student, record the times logged on and logged off • calculate the length of time each student spends online … | |
i am working in a bank and am working on project to write a program that will work on touch screen kiosk and make customer flow management easier but i don know what programing language i can you and how can i do it , and what algorithm to use … | |
![]() | Hi guys, I'm hoping someone here can help. I am to develop an application for a project which keeps track of tennis scores. Having not been a tennis fan whatsoever during my life I am in need of some assistance developing the ontology (rules) for the apps logic. Can anyone … ![]() |
![]() | Well, this morning I tried to write a program to update environment variable's list. And I got stuck at a very crucial point. I think am making some silly mistake. A second opinion will be helpful. Algorithm: 1) Take complete path of environment variable into a string variable 'env'. 2) … |
Hello all, I think almost all the SEOs are hit by this Humming bird algorithm. Can anyone share their ideas to get good ranking after attacked with this algorithm? | |
![]() | Hey guys I'm finishing off a project for an assignment and have run into an error I can't resolve. Here is a link to a video showing the error... https://www.dropbox.com/s/25ajb0mc5p4a3a9/Tilemap%20Error.mov The class throwing the error has been working in other projects or so I thought, but has been modified a … ![]() |
I am trying to implement a search algorithm,it needs a tree with four(NOTE n=4) nodes.Is the struct declaration correct for array of structure pointers??You see the main idea is start with the 'cur' node.Then take a new 'temp' node. Copy the contents of 'cur->state' into 'temp->state' then perform the 'res' … | |
Hi, I'm having a major problem with an algorithm for Java. I am building a program that recursively parses a simple programming language that follows obvious production grammars. My main issue is nesting. For instance, the pattern might be something like this: Create Jpanel1:{ Create JButton1 Create JPanel2:{ Create JButton2 … ![]() | |
Don’t know if this is ever been done before, or even if it is a good way to do it. I’ll just await your comments if any. What I mostly found on the web is that if you want to define a polynomial you need to have an array containing … | |
Hi, I am currently working on a UNO Game using C++ and I am facing some troubles. I need to use Vectors and Pointers (for the main bulk for this assignment). I am wondering if anyone could kindly help me because the deadline is on Wednesday and I feel very … | |
if (con.State == ConnectionState.Open) con.Close(); con.Open(); SqlCommand c = new SqlCommand("select word,category from unwanted", con); //SqlCommand c = new SqlCommand("select word,category from unwanted where word ='"+txtWhatsOnYourHeart.Text+"' ", con); SqlDataReader r = c.ExecuteReader(); // if (r.Read()) while(r.Read()) { al.Add(r[0].ToString()); //a = r[0].ToString(); b = r[1].ToString(); } a = txtWhatsOnYourHeart.Text; int cnt=0; … | |
Can someone please write this program for me? Your program will accept as input only unsigned integers in the range 2 .. 65535. If the user enters a value that is invalid, your program must print a helpful error message and prompt the user to enter a new integer. Your … | |
Hi there, Im currently designing a Dots and Boxes Game and ive run into a snag,where my Minimax Algorithm will go 4-1 against the AI but not make the next move to win.Any help with this would be great package players; import interfaces.GameState; import java.util.List; import data.Line; public class MiniMax … ![]() | |
Hi there im trying to create a Minimax player in AI for dots and boxes Following this algorithm Max-Value(state) returns a utility value if Terminal-Test(state) then return Utility(state) v ← MinimalGameValue for s in Successors(state) do v ← Max(v, MinValue(s)) return v Min-Value(state) returns a utility value if Terminal-Test(state) then … | |
Hello there, Here i'm expecting some useful suggestions to increase ranking and traffice to a Humming bird algorithm effected site. Thanks in advance. | |
*Doing the PSEUDOCODE but stuck in the middle. Please help me out.* Scenario: After practicing and learning problem solving skills for an extended period of time, you have decided that life would be easier if you did not need to continue with school. Rather, you decide that winning a large … | |
Hi. I'm trying to implement a disk scheduling algorithm using a vector. I am able to find the smallest element of the vector with my findMin() function: int computer::findMin( vector<int> v ) { int minIndex = 0; for( int i = 1; i < v.size( ); i++ ) if( v[ … | |
Google Optimization forum discussing techniques to increase rank in Google. Find help for defeating spam pages, building site trust, and figuring out the Google algorithm. Also read about the best SEO tools to help with Google search. | |
Hi I've written this small program to demonstrate the Diffie–Hellman key exchange algorithm. The desired output from the program is for most runs correct. However occasionally there are some discrepancies in output of the shared secret keys values in that they don't match, when they should. I've found that certain … | |
package JavaApplication42; import java.io.*; import java.io.IOException; import java.util.*; import java.io.BufferedReader; public class DPmodification { public static void main(String[] args) { BufferedReader br = null; int n, c, d,k, swap,i=0,j=0,no_of_selected_item=0; int numItems; int numTransactions; double minSup; String configFile = "F:\\New Folder\\configtrial.txt"; try{ FileInputStream file_in = new FileInputStream(configFile); BufferedReader data_in = new … ![]() | |
I got a code from a book on Fibonacci written in java. And because it's still raw, I did some editing to it (change some lined of code, add code that enables input etc). But, it doesn't work. The other three fibonacci programs (with different algorithm) work fine, but not … | |
I'm beginner with c++ and want some help Create Class CSalary with private member variables string m_strProfession double m_dSalary Constructors:Default,Copy,Explicit Functions: 1/string GetProf(void),double GetSalary(void) 2/SetProf(const string val),SetSalary(const double val) 3/Output(ostream&) and Input(istram&) 4/Operators:<<,>>,=,==,<,double operator*(const CSalary&obj) Create Class CCalcCorr with private member variables: vector<CSalary>m_vCity1//data for city 1 vector<CSalary>m_vCity2//data for city 2 … | |
I wrote this code to find if string s2 is a substring of string s1. However I'm getting time limit exceeded. How can I make my algorithm better? #include<stdio.h> int main() { char s1[20], s2[20]; scanf("%s %s", s1,s2); char *p, *q, *count; p=s1; q=s2; int i=21; do{ if(*p==*q) /* the … | |
Hello, I am trying to write this program in Delphi that calculates the amount of change required to make a certain amount. The user enter a number between 1 and 200. The program then calculates the amount of 100, 50, 20, 10, 5, 2, 1 bils required. But there is … | |
![]() | I keep getting a corruption for my array and I do not know why. Can anyone help me figure out what is causing my run-time error to happen? my heapInsert function is at the very bottom #include <iostream> #include <algorithm> using namespace std; //function prototypes int getParent(int index); int getLeftChild(int … ![]() |
Hello, I'm a first timer here but I've kind of exhausted all my options for help on this program so this is my last resort... Anyhow, I'm constructing a hash table given a hash table class header file from my textbook. I'm working on the Driver.cpp file and here's what's … | |
Develope an algorithm that will accept and allocates the fund for the differenct state activities for America's 50th celebration. The algorithm should accept and store the actual dollar value that will be allocated to the parishes.Noo more than 14 states should be accepted.The algorithm should also determine the number of … | |
Hello, So I have been trying to produce an algorithm for unsymmetric matrices which finds the smallest magnitude eigen value. I have found this:   However, I still don't know how to implement it in python. Can someone help out or provide psudocode/code ? | |
hi i want to develop project which identify person by capturing image of the person through webcam i.e. it identify the face. i googled this topic i found some algorithm .but there is two type of algorithm one is for detection and other is for recognization so which type of … | |
import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print … | |
Hi. I am very new to hashtable concept. Here is a skeleton of the methods I need to implement; BUT, my biggest question is the inner Entry class. Am I implementing the entry class correctly?Is my constructor correct? Thanks public class HashTable<K, V> { /** define an inner class to … | |
Hi Im new to learning java so far ive picked up the basics of it but now im trying to create a first and best fit algorithm for the purpose of memory managment now my question is what to i specifcally need to learn to be able to to this … | |
![]() | I was given a project to do, but I don't understand this notation and am rather confused, so I don't even know where to get started. I am supposed to be using the clock function to see how long it takes for the code below to finish running. Prefix Averages … |
Hi, colleagues! I'm IT-enthusiast from Saint-Petersburg, Russia. For last years employed as java-developer (previously for Norway and now for US-based company). Since most programmers, when tired of writing code at their job, try relaxing writing other code when at home - I write a lot of stupid things for my … | |
Hiee, I am new to this forum. Can anyone let me know where i can get sufficient practice problems where i can find the time complexity of the algorithm. Finding the complexity based on:- 1.)Constant order of Growth 2.)Linear order of Growth 3.)Logarithmic order of Growth 4.)Quadratic order of Growth … | |
i need parallel program that can sort 500,1000,1500,2000 numbes in bubble sort,selection sort,insertion sort and merge sort. | |
My main idea is to find an algorithm ( Java ) that takes the random letters which someone has typed in a JoptionPane for instance and then instantly by pressing "Find words" i would like the program to derive all those words that match my letters from a dictionary stored … ![]() |
The End.