3,815 Topics

Member Avatar for
Member Avatar for jhender4880

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 …

Member Avatar for jhender4880
0
255
Member Avatar for RikP

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 …

Member Avatar for Hiroshe
0
169
Member Avatar for mayank.mittal.3954

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 …

Member Avatar for Hiroshe
0
300
Member Avatar for piikun

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: …

Member Avatar for David W
0
149
Member Avatar for bayosyntax

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 …

Member Avatar for mike_2000_17
0
231
Member Avatar for Cool_Omar

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 …

0
198
Member Avatar for bob_8

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 …

Member Avatar for nouth
0
823
Member Avatar for shomy

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 …

Member Avatar for shomy
-1
287
Member Avatar for thabo.tman.545

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=[] …

Member Avatar for woooee
0
534
Member Avatar for chicku1403

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.

Member Avatar for Kelly Burby
0
257
Member Avatar for neutralfox

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for happygeek

**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. …

Member Avatar for Hiroshe
1
1K
Member Avatar for Prabhat_1

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

Member Avatar for Hiroshe
0
75
Member Avatar for Jurdmie15

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 …

Member Avatar for L7Sqr
0
61
Member Avatar for abey ella

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 …

Member Avatar for abey ella
0
280
Member Avatar for Dave_5

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 …

Member Avatar for Dave_5
0
627
Member Avatar for Rahul47

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) …

Member Avatar for N1GHTS
0
222
Member Avatar for vectramind

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?

Member Avatar for Siya_2
0
117
Member Avatar for Dave_5

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 …

Member Avatar for Dave_5
0
230
Member Avatar for codey666

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' …

Member Avatar for codey666
0
311
Member Avatar for Goldfinch

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 …

Member Avatar for iamthwee
0
197
Member Avatar for ddanbe

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 …

0
448
Member Avatar for pinkamech

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 …

Member Avatar for pinkamech
0
5K
Member Avatar for settu

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; …

Member Avatar for ameerbatcha
0
154
Member Avatar for kswag18

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 …

Member Avatar for Schol-R-LEA
-2
728
Member Avatar for gxs100

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 …

Member Avatar for iamthwee
0
2K
Member Avatar for gxs100

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 …

Member Avatar for gxs100
0
241
Member Avatar for vectramind

Hello there, Here i'm expecting some useful suggestions to increase ranking and traffice to a Humming bird algorithm effected site. Thanks in advance.

Member Avatar for atul01
0
213
Member Avatar for shit3432

*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 …

Member Avatar for stultuske
0
212
Member Avatar for smitsky

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[ …

Member Avatar for mike_2000_17
0
302
Member Avatar for webby21

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.

Member Avatar for webby21
0
270
Member Avatar for ziggystarman

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 …

Member Avatar for logicslab
0
993
Member Avatar for anku83

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 …

Member Avatar for iamthwee
0
288
Member Avatar for Lia_2

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 …

Member Avatar for hannahaddad
0
307
Member Avatar for loldafuq

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 …

Member Avatar for loldafuq
0
313
Member Avatar for neha_8

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 …

Member Avatar for neha_8
0
194
Member Avatar for MasterHacker110

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 …

Member Avatar for MasterHacker110
0
259
Member Avatar for TheFearful

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 …

Member Avatar for TheFearful
0
284
Member Avatar for g12mcgov

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 …

0
187
Member Avatar for killbarnaby

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 …

Member Avatar for Schol-R-LEA
0
136
Member Avatar for akerman

Hello, So I have been trying to produce an algorithm for unsymmetric matrices which finds the smallest magnitude eigen value. I have found this: ![cfafcf24b5563ebb8aad4395c3c90ff0](/attachments/large/2/cfafcf24b5563ebb8aad4395c3c90ff0.png "cfafcf24b5563ebb8aad4395c3c90ff0") ![cfafcf24b5563ebb8aad4395c3c90ff0](/attachments/small/2/cfafcf24b5563ebb8aad4395c3c90ff0.png) However, I still don't know how to implement it in python. Can someone help out or provide psudocode/code ?

Member Avatar for BearofNH
0
163
Member Avatar for sj5536

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 …

Member Avatar for ravi_14
0
171
Member Avatar for Zahra_1

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 …

Member Avatar for Zahra_1
0
4K
Member Avatar for woomar

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 …

Member Avatar for JamesCherrill
0
213
Member Avatar for zsman19

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 …

Member Avatar for Tarek_2
0
150
Member Avatar for TheFearful

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 …

Member Avatar for Schol-R-LEA
0
321
Member Avatar for rodion.gorkovenko

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 …

Member Avatar for JorgeM
0
210
Member Avatar for raghav.nayak.73

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 …

Member Avatar for raghav.nayak.73
0
246
Member Avatar for tolatallest

i need parallel program that can sort 500,1000,1500,2000 numbes in bubble sort,selection sort,insertion sort and merge sort.

Member Avatar for mike_2000_17
0
116
Member Avatar for anestistsoukalis

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 …

Member Avatar for iamthwee
0
221

The End.