15,885,244 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Huisheng Chen (Top 8 by date)
Huisheng Chen
19-Feb-12 0:53am
View
Deleted
I prefer:
a ^= b;
b ^= a;
a ^= b;
because:
1. no overflow like the one using addition
2. no external function required
Huisheng Chen
4-Feb-12 4:56am
View
Deleted
Good job, I updated my tip at http://www.codeproject.com/Tips/323212/Accurate-way-to-tell-if-an-assembly-is-compiled-in please look at the final summary
Huisheng Chen
3-Feb-12 20:14pm
View
Deleted
how about multi-lingual support?
Huisheng Chen
9-Jan-12 8:06am
View
Deleted
I think Aho-Corasick string matching could be much faster than Split
Huisheng Chen
24-Apr-11 18:14pm
View
Deleted
by small digits I mean something like:
1.2345, 6.78 etc
I once wrote such functions, but I wrote 3 separate functions, one for integers, one for small digits, one for negative small digits. Yet I believe that it would be much better to have all of them within one function.
Huisheng Chen
24-Apr-11 9:05am
View
Deleted
what if small digits or negative values? I think using regexp is a better solution
Huisheng Chen
27-Jan-11 16:39pm
View
thank you very much, finally I made the correct format
Huisheng Chen
27-Jan-11 4:58am
View
let me simplify my question, imagine a series of values:
1,2,1,3,2,4,5, 11,10,12,10,12,13, 25,21,24,20, 4,5,2,3
we can see clearly see that according to the difference, we could split them into 4 groups bassed on my requirement above.
I searched a lot, finally came to k-means algo, but it seems that it only deals with 2-d data, not for 1-d values.
Show More