Issue 11 in ecspy: about topologies.py

2 views
Skip to first unread message

ec...@googlecode.com

unread,
Feb 16, 2012, 1:41:50 AM2/16/12
to ec...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 11 by Kazunori...@gmail.com: about topologies.py
http://code.google.com/p/ecspy/issues/detail?id=11

I read topologies.py.
In that code, star_topology function was implemented as below
# code
neighbors = [population[:] for _ in range(len(population))]

better(faster and readable) code I think
# code
neighbors = [population] * len(population)

results of two are maybe equal.
I only tested in few cases.

Reply all
Reply to author
Forward
0 new messages