Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: razzle

Page 1 of 19 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Using a linear median algorithm to find the largest subset for some given sum

    One way would be to use the median finding algorithm to split the array into two equal halves and then reorder it so that all elements smaller than the median go into the left partition and the rest...
  2. Replies
    5
    Views
    253

    Re: Solution of a recurrence relation

    Okay, I must admit your professor is right.

    It's this line that makes the difference,

    m=n*n

    Assume you call Function with N. Then the innermost for loop will iterate N^2 times the first time...
  3. Replies
    3
    Views
    182

    Re: Understanding Iterators

    Iterators aren't just C++.

    They are one of the basic OO Design Patterns:

    "Provide a way to access the elements of an aggregate object sequentially without exposing its underlying...
  4. Replies
    5
    Views
    253

    Re: Solution of a recurrence relation

    Are you sure about that?

    To me it rather looks like O(log N) and then some but not much.
  5. Replies
    5
    Views
    346

    Re: GUI design in C++

    Well, at one point not very long ago even native C++ was declared irrelevant. :)

    I think MFC may be experiencing something of a revival by being included in the VS 2013 Community and thus...
  6. Replies
    3
    Views
    187

    Re: Sorting for maximum distance

    Well, your problem is special in that the graph is complete (every vertex is connected with every other vertex) and that the edge lengths are interdependent (because of the way they are constructed...
  7. Replies
    5
    Views
    346

    Re: GUI design in C++

    I'd say the GUI subsystem closest to Windows Forms for native C++ would be Microsoft Foundation Classes (MFC). It's included in the free Visual Studio 2013 Community Edition.

    Using MFC will make...
  8. Replies
    3
    Views
    187

    Re: Sorting for maximum distance

    Your problem can be re-formulated as an equivalent graph problem.

    Each of your numbers is represented by a vertex in a graph. All vertexes are connected by edges forming a complete graph. The...
  9. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    The question was whether a single .h always can be made functionally equivalent to a .h/.cpp split using any means such as inlining, templating, #include guarding, local statics, etcetera.

    That's...
  10. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    You've claimed this before and I've addressed it already, mainly in posts #16 and #17.

    In a nutshell: Good design reduces complexities and interdependencies of programs. In addition to making them...
  11. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    I don't follow you.

    Lets say you make a .h/.cpp split in order for the .h file to be used in several TUs.

    Now, isn't it possible to reverse the .h/.cpp split and put everything together again...
  12. Re: a searching algorithm in a circle: 1 unidirectional, 2- Bididirectional

    Well, I don't have time to get too involved so I prefer to discuss in public. Then also you reach more people and get better help. :)
  13. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    I haven't experienced any limitations in particular. Okay some things must be done differently but the end result has always been better code. For example global data must be turned into Singletons...
  14. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    So in your view the main advantage of .h/.cpp splitting is that if you're lucky ODR related problems may not surface?

    Isn't it better to know C++ to the extent that you can write programs...
  15. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    Well, before you do that I advice you to first improve your argumentation skills considerably.

    No offence but there's a difference. I've argued my case whereas the only thing you've come up with...
  16. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    Coming from Java I've always found this obsession with .h/.cpp kind of weird. It has no design benefits and regardless of how you split a program the tool chain responsible for producing an...
  17. Re: Looking for Advice! Certifications and Learning (Professional development)

    You have lots of education already and now is the time to put what you already know to practical use.

    As I see it you don't have any spare time until you're considered the best among peers and the...
  18. Re: a searching algorithm in a circle: 1 unidirectional, 2- Bididirectional

    Well, topogically you're on a torus and since a torus can be view as two circles and they're equal in this case because the grid is square, I guess you can speak of a diameter.

    Your grid has so...
  19. Replies
    2
    Views
    185

    Re: What kind of graph is this one?

    It's usually called a torus grid (lattice) because topologically you're on a torus (donut).

    If the distance from a node to any of its 8 neighbors is 1 it's called a Chebychev distance (rather that...
  20. Replies
    3
    Views
    239

    Re: Algorithm selection

    Well in that case you don't collect ALL "name/family" combinations into the dynamic array. You only put in the "name/family" combinations from the families the "individuals" are interested in. Pretty...
  21. Re: a searching algorithm in a circle: 1 unidirectional, 2- Bididirectional

    I have deduced the average cases and given the O complexity in previous posts.

    The average number of steps between any A and any B in the unidirectional and bidirectional cases are 2N/3 and N/3...
  22. Re: a searching algorithm in a circle: 1 unidirectional, 2- Bididirectional

    Well, in my replies I've defined N to mean the side length of the grid (N=8 in your example). It seemed most natural to me but of course you can use the total number of elements instead. Then your N...
  23. Re: a searching algorithm in a circle: 1 unidirectional, 2- Bididirectional

    With "structured and organized in specific manner" I assume you mean what I decribe at the beginning of my previous reply? Otherwise all bets are off.

    I have given the average number of steps for...
  24. Replies
    21
    Views
    820

    Re: Opinions on my get/set approach

    You are wrong.

    The term immutability is not even mentioned in the standard. Immutable is mentioned once but then in the genereral computer science meaning of the word.

    C++ has a language...
  25. Thread: .h and .cpp

    by razzle
    Replies
    39
    Views
    1,466

    Re: .h and .cpp

    I understand that .h/.cpp splitting has a long history and that probably explains why it's so deeply rooted today. But maybe the time has come to reconsider this practice?

    I started putting more...
Results 1 to 25 of 459
Page 1 of 19 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center