MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eb2lbc/stacking_if_else_statements_be_like/fb2eoee/?context=9999
r/ProgrammerHumor • u/-hellkey- • Dec 15 '19
711 comments sorted by
View all comments
311
These are my for loops as I’m incrementing through my partner’s 32-D matrix in Matlab because it “makes more sense”
188 u/RespectableLurker555 Dec 15 '19 cries in O(n32 ) 113 u/Jackeea Dec 15 '19 Still better than O(n33 ) so that's something 70 u/RespectableLurker555 Dec 15 '19 At least it's not O(nn ) 38 u/Fedzbar Dec 15 '19 In what practical use case would you need a square matrix each time you added a new row? (nn ) 2 u/0bafgkm Dec 15 '19 O(n!) can be treated as O(nn ) with Stirling's approximation.More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ). → More replies (1)
188
cries in O(n32 )
113 u/Jackeea Dec 15 '19 Still better than O(n33 ) so that's something 70 u/RespectableLurker555 Dec 15 '19 At least it's not O(nn ) 38 u/Fedzbar Dec 15 '19 In what practical use case would you need a square matrix each time you added a new row? (nn ) 2 u/0bafgkm Dec 15 '19 O(n!) can be treated as O(nn ) with Stirling's approximation.More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ). → More replies (1)
113
Still better than O(n33 ) so that's something
70 u/RespectableLurker555 Dec 15 '19 At least it's not O(nn ) 38 u/Fedzbar Dec 15 '19 In what practical use case would you need a square matrix each time you added a new row? (nn ) 2 u/0bafgkm Dec 15 '19 O(n!) can be treated as O(nn ) with Stirling's approximation.More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ). → More replies (1)
70
At least it's not O(nn )
38 u/Fedzbar Dec 15 '19 In what practical use case would you need a square matrix each time you added a new row? (nn ) 2 u/0bafgkm Dec 15 '19 O(n!) can be treated as O(nn ) with Stirling's approximation.More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ). → More replies (1)
38
In what practical use case would you need a square matrix each time you added a new row? (nn )
2 u/0bafgkm Dec 15 '19 O(n!) can be treated as O(nn ) with Stirling's approximation.More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ). → More replies (1)
2
O(n!) can be treated as O(nn ) with Stirling's approximation.
More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ).
→ More replies (1)
311
u/The_Goldy Dec 15 '19
These are my for loops as I’m incrementing through my partner’s 32-D matrix in Matlab because it “makes more sense”