« first day (792 days earlier)      last day (1396 days later) » 

02:17
0
Q: Is this implementation of memcmp() correct in python

coraxI was trying to implement the Quick Search Algorithm in python. I am running into some problems with it. """ This is the Quick Search algorithm v 2""" def alphabet_index(c): """ Returns the index of the given character in the English alphabet, counting from 0. """ return ord(c.lower...

0
Q: Efficient way to write this python numpy code

AnthonyI have the following code that uses OpenCV and numpy. I am new to python and feel that this code isn't good for memory footprint. I'm looking for suggestions to make this code memory efficient. # I get rects from extracting regions in an image for r in range(0,len(rects)): rects_new.append(re...

 
4 hours later…
06:33
0
Q: Python: Checking for similar strings in 2 different files

S1306I have 2 different files. I want to compare first 4 letters of each file. For example. file1 contains 1111aa 1111ba 2222cc 3333dd 2222zd 3211fa 4244ws file2 1111 2222 3333 In file3 i want to list all strings from file1. I can only find 13 out of 100. Here is my code inputFile1=open('file1', ...

 
2 hours later…
08:45
0
Q: Minimum coins exchanging Python

popasasLittle intro: Change making problem - is the problem of representing a given value with the fewest coins possible from a given set of coin denominations. Unboundedly many coins of each denomination are available. Last time i asked : Coins changing with recursion No one helped , maybe there was ...

 
3 hours later…
11:56
0
Q: How to reduce memory consumed by code that collection regions of interest in an image

AnthonyI have the following code that uses OpenCV and numpy. I am new to python and feel that this code isn't good for memory footprint. I'm looking for suggestions to make this code memory efficient. This code extracts rectangle regions from an image. The rectangle regions are then sent to non_max_sup...

 
2 hours later…
13:42
1 message moved from SO Close Vote Reviewers
How did you escape from the Trash?!
Sam
Sam
1 message moved from SO Close Vote Reviewers
1
2
2 messages moved from SO Close Vote Reviewers
 
7 hours later…
21:24
0
Q: How can I make this code more efficient and better?

choiseunghwanPlease help to improve my code, this is for homework and I'm just curious if more can be done to improve this. The code is about displaying membership information of all clients from a database. Feel free to alter it, but please include some reasons for your alterations, thanks. import sys impor...

22:14
0
Q: Python modules not installing

hyperviper11This is my first question on Programmers, so I apologize if this is badly written. I didn't know to put this on Stack Overflow. I am making a program in Python and want to install third-party modules with pip. However, I tried to install PyPDF2 and BeautifulSoup4. When I opened IDLE and typed in ...

22:32
-5
Q: Write a routine that goes through all the possible combinations from AAAAAA to ZZZZZZ java

Elisabeth PostI need to write a routine which will begin with “AAAAAA” and go through all the possible combinations of letters to “ZZZZZZ”. I was thinking about doing this using a multidimensional array of [26][26] and filling it using for loops, but that doesn't account for the size constraint of only 6 lett...

1 message moved from SO Close Vote Reviewers
0
Q: Chopsticks Game in Python

APCodingAs a beginning project, I decided to code something that plays the game Chopsticks in Python 3 (please click on the link if you don't already know the game). I'm using the Minimax algorithm, and exploring the tree using simple recursion. One of the main problems is performance. I can only search ...


« first day (792 days earlier)      last day (1396 days later) »